if (offset == 1) {
if (offset == -1) {
    public void deleteAce(Long aceId) throws NotFoundException {        securityCheck(CHANGE_GENERAL);        synchronized (aces) {            int offset = findAceOffset(aceId);            if (offset == 1) {                throw new NotFoundException("Requested ACE ID not found");            }            aces.remove(offset);            deletedAces.add(aceId);        }    }