* @throws Exception
*/
private void loadMetadataAccessPolicyConfiguration(
ApplicationConfiguration appConfig, Node root) throws Exception {
XPath xpath = XPathFactory.newInstance().newXPath();
MetadataAccessPolicy aclCfg = appConfig.getMetadataAccessPolicy();
Node ndPolicy = (Node) xpath.evaluate("catalog/metadataAccessPolicy", root,
XPathConstants.NODE);
if (ndPolicy != null) {
String type = xpath.evaluate("@type", ndPolicy);
aclCfg.setAccessPolicyType(type);
String accessToGroupDN = xpath.evaluate("@protectedGroupDN", ndPolicy);
if (accessToGroupDN != null && accessToGroupDN.trim().length() > 0) {
aclCfg.setAccessToGroupDN(accessToGroupDN);
}
}
}