}
// ejb-ref*
EjbRef[] ejbRefs = sunWebApp.getEjbRef();
if (ejbRefs!=null && ejbRefs.length>0) {
EjbRefNode node = new EjbRefNode();
for (int i=0;i<ejbRefs.length;i++) {
node.writeDescriptor(web, RuntimeTagNames.EJB_REF, ejbRefs[i]);
}
}
// resource-ref*
ResourceRef[] resourceRefs = sunWebApp.getResourceRef();
if (resourceRefs!=null && resourceRefs.length>0) {
ResourceRefNode node = new ResourceRefNode();
for (int i=0;i<resourceRefs.length;i++) {
node.writeDescriptor(web, RuntimeTagNames.RESOURCE_REF, resourceRefs[i]);
}
}
// resource-env-ref*
ResourceEnvRef[] resourceEnvRefs = sunWebApp.getResourceEnvRef();
if (resourceEnvRefs!=null && resourceEnvRefs.length>0) {
ResourceEnvRefNode node = new ResourceEnvRefNode();
for (int i=0;i<resourceEnvRefs.length;i++) {
node.writeDescriptor(web, RuntimeTagNames.RESOURCE_ENV_REF, resourceEnvRefs[i]);
}
}
// service-ref*
if (bundleDescriptor.hasServiceReferenceDescriptors()) {