code: public static void init(final GwAPI gwAPI, GwFacade facade) throws Exception {
  		////////
  		// Overall APIs
  		///////
  		gwAPI.route(HttpMethods.GET,"/dme2/:service/:version/:envContext/:routeOffer/:path*",API.VOID,new GwCode(facade,"Document API", true) {
  			@Override
  			public void handle(AuthzTrans trans, HttpServletRequest req, HttpServletResponse resp) throws Exception {
  				//TODO cache this...
  				try {
  					Locator loc = new DME2Locator(gwAPI.env, gwAPI.dme2Man, 
  						pathParam(req,":service"),
  						pathParam(req,":version"),
  						pathParam(req,":envContext"),
  						pathParam(req,":routeOffer")
  						);
  					if(loc.hasItems()) {
  						Item item = loc.best();
  						URI uri = (URI) loc.get(item);
  						String redirectURL = uri.toString() + '/' + pathParam(req,":path");
  						trans.warn().log("Redirect to",redirectURL);
  						resp.sendRedirect(redirectURL);
  					} else {
  						context.error(trans, resp, Result.err(Result.ERR_NotFound,"%s is not valid",req.getPathInfo()));
  					}
  				} catch (LocatorException e) {
  					context.error(trans, resp, Result.err(Result.ERR_NotFound,"No DME2 Endpoints found for %s",req.getPathInfo()));
  				}
  			}
  		});
  
  	}
docs: Normal Init level APIs
  
  @param gwAPI
  @param facade
  @throws Exception