write the descriptor class to a DOM tree and return it
Iterator secPerms = descriptor.getSecurityPermissions().iterator();
//auth mechanism info
for (;secPerms.hasNext();) {
//for (Iterator secPerms = ((OutboundResourceAdapter)descriptor).getSecurityPermissions().iterator(); secPerms.hasNext();) {
SecurityPermission secPerm = (SecurityPermission) secPerms.next();
Node secNode = appendChild(parent, ConnectorTagNames.SECURITY_PERMISSION);
writeLocalizedDescriptions(secNode, secPerm);
appendTextChild(secNode, ConnectorTagNames.SECURITY_PERMISSION_SPEC, secPerm.getPermission());
}
return null;