code: public static AppModuleLoader build(final String name, final File... cp) throws Exception {
      Map<ModuleIdentifier, ModuleSpec> modules = newModule(name, 0, "", cp);
      return new AppModuleLoader(modules);
    }
docs: Build a flat jboss module, with some minor exceptions (like j2v8).
  
  @param name module name.
  @param cp Classpath.
  @return A new app module loader.
  @throws Exception If something goes wrong.