public static String mapModule(String directory) throws FileNotFoundException, JsonParserException {
  ScriptEngine engine=JavaScript.getEngine();
  if (engine.get("__MODULES") == null)   engine.put("__MODULES",new HashMap<String,File>());
  return mapModule(new File(directory),(HashMap<String,File>)engine.get("__MODULES"));
}

public static String mapModule ( String directory ) throws FileNotFoundException , JsonParserException { ScriptEngine engine = JavaScript . getEngine ( ) ; if ( engine . get ( "__MODULES" ) == null ) engine . put ( "__MODULES" , new HashMap < String , File > ( ) ) ; return mapModule ( new File ( directory ) , ( HashMap < String , File > ) engine . get ( "__MODULES" ) ) ; }
map a module with the given ( extracted ) directory into the javascript engine .
