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