code: public AppConfigurationEntry createAppConfigurationEntry(JAASLoginModuleConfig loginModule, String loginContextEntryName) {
          String loginModuleClassName = loginModule.getClassName();
          LoginModuleControlFlag controlFlag = loginModule.getControlFlag();
          Map<String, Object> options = new HashMap<String, Object>();
          options.putAll(loginModule.getOptions());
          if (JaasLoginConfigConstants.APPLICATION_WSLOGIN.equals(loginContextEntryName)) {
              options.put(WAS_IGNORE_CLIENT_CONTAINER_DD, true);
          }
          else {
              options.put(WAS_IGNORE_CLIENT_CONTAINER_DD, false);
          }
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "loginModuleClassName: " + loginModuleClassName + " options: " + options.toString() + " controlFlag: " + controlFlag.toString());
          }
  
          AppConfigurationEntry loginModuleEntry = new AppConfigurationEntry(loginModuleClassName, controlFlag, options);
          return loginModuleEntry;
      }
docs: Create an AppConfigurationEntry object for the given JAAS login module
  
  @param loginModule the JAAS login module
  @param loginContextEntryName the JAAS login context entry name referencing the login module
  @return the AppConfigurationEntry object
  @throws IllegalArgumentException if loginModuleName is null, if LoginModuleName has a length of 0, if controlFlag is not either REQUIRED, REQUISITE, SUFFICIENT or OPTIONAL,
  or if options is null.