ACLEditor(Session editingSession, AccessControlUtils utils) {
super(Permission.MODIFY_AC);
if (editingSession instanceof SessionImpl) {
session = ((SessionImpl) editingSession);
// TODO: review and find better solution
privilegeRegistry = new PrivilegeRegistry(session);
} else {
throw new IllegalArgumentException("org.apache.jackrabbit.core.SessionImpl expected. Found " + editingSession.getClass());
}
this.utils = utils;
}