private GlobPattern calculatePattern() throws RepositoryException {
if (path == null) {
return null; // no pattern for repo-level aces.
} else {
GlobPattern p;
Value glob = getRestrictions().get(P_GLOB);
if (glob != null) {
p = GlobPattern.create(path, glob.getString());
} else {
p = GlobPattern.create(path);