private static Property processAclProperty(Document document,
String aclPropName, String aclRolePrefix) throws RepositoryException {
LinkedList<Value> acl = new LinkedList<Value>();
Property scopeProp = document.findProperty(aclPropName);
Value scopeVal;
while ((scopeVal = scopeProp.nextValue()) != null) {
Principal principal = (scopeVal instanceof PrincipalValue)
? ((PrincipalValue) scopeVal).getPrincipal()
: new Principal(scopeVal.toString().trim());
String aclScope = principal.getName();
if (Strings.isNullOrEmpty(aclScope)) {