String profileConfigName = null;
Iterator<OMElement> profileIter = null;
List<String> hidden = null;
List<String> overridden = null;
List<String> inherited = null;
ProfileConfiguration profileConfiguration = null;
profileConfigName = profileElem.getAttribute(
new QName(ATTR_PROFILE_CONFIG_NAME)).getAttributeValue();
dialectName = profileElem.getAttribute(new QName(ATTR_DIALECT_URI))
.getAttributeValue();
profileIter = profileElem.getChildrenWithLocalName(LOCAL_NAME_CLAIM);
hidden = new ArrayList<String>();
overridden = new ArrayList<String>();
inherited = new ArrayList<String>();
while (profileIter.hasNext()) {
OMElement claimElem = null;
String claimURI = null;
String behavior = null;
claimElem = profileIter.next();
claimURI = claimElem.getFirstChildWithName(
new QName(LOCAL_NAME_CLAIM_URI)).getText();
behavior = claimElem.getFirstChildWithName(
new QName(LOCAL_NAME_CLAIM_BEHAVIOR)).getText();
if (behavior.equals(UserCoreConstants.CLAIM_HIDDEN)) {
hidden.add(claimURI);
} else if (behavior.equals(UserCoreConstants.CLAIM_OVERRIDEN)) {
overridden.add(claimURI);
} else {
inherited.add(claimURI);
}
}
profileConfiguration = new ProfileConfiguration(profileConfigName, hidden, overridden,
inherited);
profileConfiguration.setDialectName(dialectName);
profileConfigs.put(profileConfigName, profileConfiguration);
}
try {