@Override
public Validator getRootValidator(NodeState before, NodeState after) {
Tree rootBefore = new ImmutableTree(before);
Tree rootAfter = new ImmutableTree(after);
AccessControlConfiguration acConfig = securityProvider.getAccessControlConfiguration();
RestrictionProvider restrictionProvider = acConfig.getRestrictionProvider(NamePathMapper.DEFAULT);
Map<String, Privilege> privileges = getPrivileges(before, securityProvider.getPrivilegeConfiguration());
ReadOnlyNodeTypeManager ntMgr = ReadOnlyNodeTypeManager.getInstance(before);
return new AccessControlValidator(rootBefore, rootAfter, privileges, restrictionProvider, ntMgr);