title: Camel - Passing specific parameters from routes to a generic bean method
body: <p>Let's say I have a Camel route that looks like this : </p>
  
  <pre><code>from("direct:myRoute")
          .setHeader("someHeader", simple("some header value"))
          .beanRef("myBean", "beanMethod");
  </code></pre>
  
  <p>And I have a bean that I <code>cannot change</code> that looks like this : </p>
  
  <pre><code>public class MyBean {
      public void beanMethod(String headerExpected) {
          // do something with the value here.
      }
  }
  </code></pre>
  
  <p>Basically, I want to pass the value of <strong>someHeader</strong> from <strong>myRoute</strong> to <strong>beanMethod</strong> within <strong>MyBean</strong>.</p>
  
  <p>Knowing that beanMethod can accept a <code>String</code>, how can I pass the value of the header <strong>someHeader</strong> from the route so that it is accepted as a String within <strong>beanMethod</strong>?</p>