int numResourceEnvRefs = data.getJmsDestinationRefs().size();
if (numResourceEnvRefs > 0) {
ResourceEnvRef[] resourceEnvRefs = new ResourceEnvRef[numResourceEnvRefs];
for (int i = 0; i < numResourceEnvRefs; i++) {
resourceEnvRefs[i] = new ResourceEnvRef();
}
webApp.setResourceEnvRefs(resourceEnvRefs);
for (int i = 0; i < numResourceEnvRefs; i++) {
ResourceEnvRef resourceEnvRef = resourceEnvRefs[i];
ReferenceData referenceData = (ReferenceData) data.getJmsDestinationRefs().get(i);
resourceEnvRef.setRefName(referenceData.getRefName());
resourceEnvRef.setPattern(createPattern(referenceData.getRefLink()));
// resourceEnvRef.setAdminObjectLink(createPattern(referenceData.getRefLink()).getName());
}
}
int numWebServiceRefs = data.getWebServiceRefs().size();