private AccessControlEntry pick ( AccessControlList acl , String principal ) throws RepositoryException { for ( AccessControlEntry entry : acl . getAccessControlEntries ( ) ) { if ( entry . getPrincipal ( ) . getName ( ) . equals ( principal ) ) { return entry ; } } return null ; }
Picks access entry for the given principal .