/** * If not already created, a new <code>message-destination-ref</code> element will be created and returned. * Otherwise, the first existing <code>message-destination-ref</code> element will be returned. * @return the instance defined for the element <code>message-destination-ref</code> */ public MessageDestinationRefType<WebAppDescriptor> getOrCreateMessageDestinationRef() { List<Node> nodeList = model.get("message-destination-ref"); if (nodeList != null && nodeList.size() > 0) { return new MessageDestinationRefTypeImpl<WebAppDescriptor>(this, "message-destination-ref", model, nodeList.get(0)); } return createMessageDestinationRef(); }
/** * If not already created, a new <code>message-destination-ref</code> element will be created and returned. * Otherwise, the first existing <code>message-destination-ref</code> element will be returned. * @return the instance defined for the element <code>message-destination-ref</code> */ public MessageDestinationRefType<WebAppDescriptor> getOrCreateMessageDestinationRef() { List<Node> nodeList = model.get("message-destination-ref"); if (nodeList != null && nodeList.size() > 0) { return new MessageDestinationRefTypeImpl<WebAppDescriptor>(this, "message-destination-ref", model, nodeList.get(0)); } return createMessageDestinationRef(); }