protected Map < String , Location > loadPaths ( Scriptable cfg ) throws URISyntaxException { Object pathlocs = cfg . get ( PATHS_CONFIGPARAM , cfg ) ; Map < String , Location > paths = new HashMap < String , Location > ( ) ; if ( pathlocs instanceof Scriptable ) { for ( Object key : ( ( Scriptable ) pathlocs ) . getIds ( ) ) { String name = toString ( key ) ; if ( ! paths . containsKey ( name ) && key instanceof String ) { Location location = loadLocation ( ( ( Scriptable ) pathlocs ) . get ( name , ( Scriptable ) pathlocs ) , false ) ; paths . put ( name , getBase ( ) . resolve ( location ) ) ; } } } return paths ; }
Initializes and returns the map of paths based on the information in the server - side config JavaScript