}
//resource-description*
ResourceRef[] resourceRefs = sunWebApp.getResourceRef();
if (resourceRefs != null && resourceRefs.length > 0) {
WLResourceDescriptionNode node = new WLResourceDescriptionNode();
for (ResourceRef resRef : resourceRefs) {
node.writeDescriptor(root, RuntimeTagNames.RESOURCE_DESCRIPTION, resRef);
}
}
//resource-env-description*
ResourceEnvRef[] resourceEnvRefs = sunWebApp.getResourceEnvRef();
if (resourceEnvRefs != null && resourceEnvRefs.length > 0) {
WLResourceEnvDescriptionNode node = new WLResourceEnvDescriptionNode();
for (ResourceEnvRef resourceEnvRef : resourceEnvRefs) {
node.writeDescriptor(root, RuntimeTagNames.RESOURCE_ENV_DESCRIPTION, resourceEnvRef);
}
}
//ejb-reference-description*
EjbRef[] ejbRefs = sunWebApp.getEjbRef();
if (ejbRefs != null && ejbRefs.length > 0) {
WLEjbReferenceDescriptionNode node = new WLEjbReferenceDescriptionNode();
for (EjbRef ejbRef : ejbRefs) {
node.writeDescriptor(root, RuntimeTagNames.EJB_REF, ejbRef);
}
}
// session-descriptor
WLSessionDescriptorNode sessionDescriptorNode = new WLSessionDescriptorNode();