private static Map constructModulesList(Set classes,Set globalAuth){
  if (debug.messageEnabled()) {
    debug.message("constructModulesList : classes : " + classes);
  }
  Iterator iter=classes.iterator();
  HashMap modules=new HashMap();
  while (iter.hasNext()) {
    String name=(String)iter.next();
    if (name.equals(APPLICATION_CLASS_NAME)) {
      continue;
    }
    if (debug.messageEnabled()) {
      debug.message("getAllAuthModules. process " + name);
    }
    int dot=name.lastIndexOf('.');
    if (dot > -1) {
      String tmp=name.substring(dot + 1,name.length());
      modules.put(tmp,name);
    }
 else {
      if ((globalAuth != null) && (!globalAuth.isEmpty())) {
        String className=getAuthenticatorClassName(name,globalAuth);
        if (debug.messageEnabled()) {
          debug.message("className : " + className);
        }
        modules.put(name,className);
      }
 else {
        modules.put(name,name);
      }
    }
  }
  return modules;
}

private static Map constructModulesList ( Set classes , Set globalAuth ) { if ( debug . messageEnabled ( ) ) { debug . message ( "constructModulesList : classes : " + classes ) ; } Iterator iter = classes . iterator ( ) ; HashMap modules = new HashMap ( ) ; while ( iter . hasNext ( ) ) { String name = ( String ) iter . next ( ) ; if ( name . equals ( APPLICATION_CLASS_NAME ) ) { continue ; } if ( debug . messageEnabled ( ) ) { debug . message ( "getAllAuthModules. process " + name ) ; } int dot = name . lastIndexOf ( '.' ) ; if ( dot > - 1 ) { String tmp = name . substring ( dot + 1 , name . length ( ) ) ; modules . put ( tmp , name ) ; } else { if ( ( globalAuth != null ) && ( ! globalAuth . isEmpty ( ) ) ) { String className = getAuthenticatorClassName ( name , globalAuth ) ; if ( debug . messageEnabled ( ) ) { debug . message ( "className : " + className ) ; } modules . put ( name , className ) ; } else { modules . put ( name , name ) ; } } } return modules ; }
creates a map where key is the module name and value is the fully qualified class name of the module .
