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>
481671
public LoginConfigType<WebAppType<T>> getOrCreateLoginConfig()
   {
      List<Node> nodeList = childNode.get("login-config");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new LoginConfigTypeImpl<WebAppType<T>>(this, "login-config", childNode, nodeList.get(0));
      }
      return createLoginConfig();
   }
324534
protected T createInstance() {
		try {
			return targetClass.newInstance();
		} catch (InstantiationException e) {
			throw new RuntimeException(e);
		} catch (IllegalAccessException e) {
			throw new RuntimeException(e);
		}
	}
1014394
public Scan<BeansDescriptor> getOrCreateScan()
   {
      List<Node> nodeList = model.get("scan");
      if (nodeList != null && nodeList.size() > 0)
      {
         return new ScanImpl<BeansDescriptor>(this, "scan", model, nodeList.get(0));
      }
      return createScan();
   }
264918
public PropertyType<ValidationConfigurationDescriptor> getOrCreateProperty()
   {
      List<Node> nodeList = model.get("property");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new PropertyTypeImpl<ValidationConfigurationDescriptor>(this, "property", model, nodeList.get(0));
      }
      return createProperty();
   }
1310322
public JspConfigType<WebAppType<T>> getOrCreateJspConfig()
   {
      List<Node> nodeList = childNode.get("jsp-config");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new JspConfigTypeImpl<WebAppType<T>>(this, "jsp-config", childNode, nodeList.get(0));
      }
      return createJspConfig();
   }
634138
public FacesConfigProtectedViewsType<WebFacesConfigDescriptor> getOrCreateProtectedViews()
   {
      List<Node> nodeList = model.get("protected-views");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new FacesConfigProtectedViewsTypeImpl<WebFacesConfigDescriptor>(this, "protected-views", model, nodeList.get(0));
      }
      return createProtectedViews();
   }
278137
public FacesConfigAttributeType<FacesConfigConverterType<T>> getOrCreateAttribute()
   {
      List<Node> nodeList = childNode.get("attribute");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new FacesConfigAttributeTypeImpl<FacesConfigConverterType<T>>(this, "attribute", childNode, nodeList.get(0));
      }
      return createAttribute();
   }
179355
public static com.typesafe.config.Config getConfig() {
		if (config == null) {
			init(null);
		}
		return config;
	}
116304
public Authentication getAuthentication() {
        String username = getValueModel(LoginDetails.PROPERTY_USERNAME, String.class).getValue();
        String password = getValueModel(LoginDetails.PROPERTY_PASSWORD, String.class).getValue();
        return new UsernamePasswordAuthenticationToken( username, password );
    }
535321
public ConfigProperty<Resourceadapter<T>> getOrCreateConfigProperty()
   {
      List<Node> nodeList = childNode.get("config-property");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new ConfigPropertyImpl<Resourceadapter<T>>(this, "config-property", childNode, nodeList.get(0));
      }
      return createConfigProperty();
   }
601403
public static DocumentFactory getInstance() {
      if (CONFIGURED_INSTANCE == null) {
         synchronized (DocumentFactory.class) {
            if (CONFIGURED_INSTANCE == null) {
               CONFIGURED_INSTANCE = new DocumentFactory();
            }
         }
      }
      return CONFIGURED_INSTANCE;
   }
901223
public SessionBeanType<EnterpriseBeansType<T>> getOrCreateSession()
   {
      List<Node> nodeList = childNode.get("session");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new SessionBeanTypeImpl<EnterpriseBeansType<T>>(this, "session", childNode, nodeList.get(0));
      }
      return createSession();
   }
816989
public final JsMEConfig getMeConfig() {

        String thisMethodName = "getMeConfig";

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            SibTr.entry(tc, thisMethodName, this);
            SibTr.exit(tc, thisMethodName, _me);
        }

        return _me;
    }
30518
@Override
    public ConfigResponse<T> getConfigResponse() {
        T config = this.config.get();

        config = withoutDefaultLogin(config);

        if (config instanceof PasswordsConfig<?>) {
            config = ((PasswordsConfig<T>) config).withoutPasswords();
        }

        return new ConfigResponse<>(config, getConfigFileLocation(), configFileLocation);
    }
1057544
public SecurityRoleType<WebFragmentType<T>> getOrCreateSecurityRole()
   {
      List<Node> nodeList = childNode.get("security-role");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new SecurityRoleTypeImpl<WebFragmentType<T>>(this, "security-role", childNode, nodeList.get(0));
      }
      return createSecurityRole();
   }
1335647
public Object getNextElement() {
        Object element = null;
        while (currentIndex+1 < endIndex && element == null) {
            currentIndex++;
            element = getElement();
        }
        return element;      
    }
411383
public static JavacConfig getLocalConfig()
  {
    JavacConfig config;

    config = _localJavac.get();

    if (config != null)
      return config;
    else
      return new JavacConfig();
  }