if (permissions == EMPTY_SET) {
permissions = new HashSet();
}
Iterator iterator = aclEntry.permissions();
while (iterator.hasNext()) {
Permission p = (Permission) iterator.next();
permissions.add(p);
}
} else {
if (permissions != EMPTY_SET) {
Iterator iterator = aclEntry.permissions();
while (iterator.hasNext()) {
Permission p = (Permission) iterator.next();
permissions.remove(p);
}
}
}
return permissions;