}
// 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()) {