String currentSubjectUri = "";
boolean currentNegative = false;
String currentInheritedFrom = "";
Element currentAceElm = null;
Element currentGrantDenyElm = null;
Enumeration permissions = security.enumeratePermissions(sToken, objectNode, true);
while (permissions.hasMoreElements()) {
NodePermission perm = (NodePermission)permissions.nextElement();
if (!perm.getSubjectUri().equals(currentSubjectUri)
|| (perm.isNegative() && !currentNegative || !perm.isNegative() && currentNegative)
|| (!currentInheritedFrom.equals(perm.getInheritedFrom()))) {