code: public void configure() throws Exception {
  
          /**
           * Expose a RESTful endpoint for LDPath processing
           */
          from("jetty:http://{{rest.host}}:{{rest.port}}{{rest.prefix}}?" +
                  "&httpMethodRestrict=GET,POST,OPTIONS" +
                  "&sendServerVersion=false")
              .routeId("FcrepoLDPathRest")
              .routeDescription("Expose the ldpath endpoint over HTTP")
              .choice()
                  .when(header(HTTP_METHOD).isEqualTo("OPTIONS"))
                      .setHeader(CONTENT_TYPE).constant("text/turtle")
                      .setHeader("Allow").constant("GET,POST,OPTIONS")
                      .to("language:simple:resource:classpath:org/fcrepo/camel/ldpath/options.ttl")
                  // make sure the required context parameter is present
                  .when(not(and(header("context").isNotNull(), header("context").regex("^https?://.+"))))
                      .setHeader(HTTP_RESPONSE_CODE).constant(400)
                      .setHeader(CONTENT_TYPE).constant("text/plain")
                      .transform(constant("Missing context parameter"))
                  .when(header(HTTP_METHOD).isEqualTo("GET"))
                      .to("direct:get")
                  .when(header(HTTP_METHOD).isEqualTo("POST"))
                      .to("direct:ldpathPrepare");
  
          from("direct:get")
              .routeId("FcrepoLDPathGet")
              .choice()
                  .when(and(header("ldpath").isNotNull(), header("ldpath").regex("^https?://.*")))
                      .removeHeaders("CamelHttp*")
                      .setHeader(HTTP_URI).header("ldpath")
                      .to("http4://localhost?useSystemProperties=true")
                      .to("direct:ldpathPrepare")
                  .otherwise()
                      .to("language:simple:resource:classpath:org/fcrepo/camel/ldpath/default.ldpath")
                      .to("direct:ldpathPrepare");
  
          from("direct:ldpathPrepare").routeId("FcrepoLDPathPrepare")
              .to("direct:ldpath")
              .to("direct:format");
  
          from("direct:format").routeId("FcrepoLDPathFormat")
              .marshal().json(Jackson)
              .removeHeaders("*")
              .setHeader(CONTENT_TYPE).constant("application/json");
      }
docs: Configure the message route workflow.