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