element - auth-realm
parentSource - parent http-service of element
parentResult - parent http-service of result
if(!this.canTransform(element.getAttribute("name"), element.getAttribute("classname")))
return;
NodeList resultAuths = parentResult.getElementsByTagName("auth-realm");
Element resultAuth = null;
for(int lh =0; lh < resultAuths.getLength(); lh++){
// Compare id attribute of auth-realm elements.
if((element.getAttribute("name")).equals(((Element)resultAuths.item(lh)).getAttribute("name"))){
resultAuth = (Element)resultAuths.item(lh);
this.transferAttributes(element, resultAuth, null);
break;
}
}
if(resultAuth == null){
// Add element - auth-realm to result security-service.
resultAuth = parentResult.getOwnerDocument().createElement("auth-realm");
this.transferAttributes(element, resultAuth, null);
this.parentName = parentResult.getTagName();
this.appendElementToParent(parentResult,resultAuth);
}
super.transform(element, parentSource, resultAuth);