write the descriptor class to a DOM tree and return it
Node myNode = appendChild(parent, nodeName);
writeLocalizedDescriptions(myNode, descriptor);
// role-name*
for (Enumeration roles = descriptor.getSecurityRoles();roles.hasMoreElements();) {
SecurityRoleDescriptor role = (SecurityRoleDescriptor) roles.nextElement();
appendTextChild(myNode, WebTagNames.ROLE_NAME, role.getName());
}
return myNode;