code: public static Router createRouterFor(ServletContext con) {
          String contextName = EldaRouterRestletSupport.flatContextPath(con.getContextPath());
          List<PrefixAndFilename> pfs = prefixAndFilenames(con, contextName);
          //
          Router result = new DefaultRouter();
          String baseFilePath = ServletUtils.withTrailingSlash(con.getRealPath("/"));
          AuthMap am = AuthMap.loadAuthMap(EldaFileManager.get(), noNamesAndValues);
          ModelLoader modelLoader = new APIModelLoader(baseFilePath);
          addBaseFilepath(baseFilePath);
          //
          SpecManagerImpl sm = new SpecManagerImpl(result, modelLoader);
          SpecManagerFactory.set(sm);
          //
          for (PrefixAndFilename pf : pfs) {
              loadOneConfigFile(result, am, modelLoader, pf.prefixPath, pf.fileName);
          }
          int count = result.countTemplates();
          return count == 0 ? RouterFactory.getDefaultRouter() : result;
      }
docs: Create a new Router initialised with the configs appropriate to the
  contextPath.