int numMessageDestinations = data.getMessageDestinations().size();
if (numMessageDestinations > 0) {
MessageDestination[] messageDestinations = new MessageDestination[numMessageDestinations];
for (int i = 0; i < numMessageDestinations; i++) {
messageDestinations[i] = new MessageDestination();
}
webApp.setMessageDestinations(messageDestinations);
for (int i = 0; i < numMessageDestinations; i++) {
MessageDestination messageDestination = messageDestinations[i];
ReferenceData referenceData = (ReferenceData) data.getMessageDestinations().get(i);
messageDestination.setMessageDestinationName(referenceData.getRefName());
// messageDestination.setPattern(createPattern(referenceData.getRefLink()));
messageDestination.setAdminObjectLink(createPattern(referenceData.getRefLink()).getName());
}
}
int numResourceEnvRefs = data.getJmsDestinationRefs().size();
if (numResourceEnvRefs > 0) {