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