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