write the descriptor class to a DOM tree and return it
Node mcfNode = super.writeDescriptor(parent, nodeName, mcf);
appendTextChild(mcfNode, RuntimeTagNames.JNDI_NAME, mcf.getJndiName());
if (mcf.getDefaultResourcePrincipal()!=null) {
DefaultResourcePrincipalNode subNode = new DefaultResourcePrincipalNode();
subNode.writeDescriptor(mcfNode, RuntimeTagNames.DEFAULT_RESOURCE_PRINCIPAL, mcf.getDefaultResourcePrincipal());
}
return mcfNode;