*/
public Node writeDescriptor(Node parent, String nodeName, ConnectorDescriptor connector) {
Node connectorNode = super.writeDescriptor(parent, nodeName, connector);
// resource-adapter
SunConnector sunDesc = connector.getSunDescriptor();
if (sunDesc!=null) {
ResourceAdapterNode ran = new ResourceAdapterNode();
ran.writeDescriptor(connectorNode, RuntimeTagNames.RESOURCE_ADAPTER, sunDesc.getResourceAdapter());
// role-map ?
if (sunDesc.getRoleMap()!=null) {
RoleMapNode rmn = new RoleMapNode();
rmn.writeDescriptor(connectorNode, RuntimeTagNames.ROLE_MAP, sunDesc.getRoleMap());
}
}
return connectorNode;
}