title: Dynamic to(URI) in Camel
body: <p>I'd like configure a Camel route where the <code>to(uri)</code> can be specified at runtime.</p>
  
  <p>I tried the following:</p>
  
  <pre><code>public class Foo extends RouteBuilder {
      @Override
      public void configure() {
          // the URI can point to different hosts
          from("direct:start").to(${someUri}");
      }
  }
  </code></pre>
  
  <p>and then</p>
  
  <pre><code>ProducerTemplate pt = camelContext.createProducerTemplate();
  pt.requestBodyAndHeader("direct:start", "someUri", "http://example.com");
  </code></pre>
  
  <p>However the above doesn't work (Camel complains about not having a default Endpoint).</p>
  
  <p>What's the best way to go about this?</p>