aclPermissionUpdate.update(new Integer( aclDetailsHolder.getForeignKeyId()), newMask);
aclPermissionUpdate.update(new Integer(permissionId), newMask);
    public void changeMask(AclObjectIdentity aclObjectIdentity,        Object recipient, Integer newMask) throws DataAccessException {        // Retrieve acl_object_identity record details        AclDetailsHolder aclDetailsHolder = lookupAclDetailsHolder(aclObjectIdentity);        // Retrieve applicable acl_permission.id        int permissionId = lookupPermissionId(aclDetailsHolder.getForeignKeyId(),                recipient.toString());        if (permissionId == -1) {            throw new DataRetrievalFailureException(                "Could not locate existing acl_permission for aclObjectIdentity: "                + aclObjectIdentity + ", recipient: " + recipient.toString());        }        // Change permission        aclPermissionUpdate.update(new Integer(                aclDetailsHolder.getForeignKeyId()), newMask);    }