messageDestinationRefName.setStringValue(resourceName);
messageDestinationRef.setMessageDestinationRefName(messageDestinationRefName);
if (!resourceType.equals("")) {
// message-destination-ref-type
MessageDestinationTypeType msgDestType = messageDestinationRef.addNewMessageDestinationType();
msgDestType.setStringValue(resourceType);
messageDestinationRef.setMessageDestinationType(msgDestType);
}
if (method != null || field != null) {
// injectionTarget
InjectionTargetType injectionTarget = messageDestinationRef.addNewInjectionTarget();