title: Camel HL7codec not working in Java DSL
body: <p>I was trying to use the camel-hl7 component to create a hl7 listener in camel. when i used the same in camel-spring, it was working. But when I try to use the same in Java DSL as follows,</p>
  
  <pre><code>HL7MLLPCodec hl7codec = new HL7MLLPCodec();
          hl7codec.setCharset("iso-8859-1");
          camelContext.addRoutes(new RouteBuilder() {
              public void configure() {
                  from("mina:tcp://localhost:4444?sync=true&amp;codec=hl7codec").to("file://test");
              }
          });
  </code></pre>
  
  <p>It throws the exception, </p>
  
  <p>java.lang.IllegalArgumentException: <strong>Could not find a suitable setter for property: codec as there isn't a setter method with same type: java.lang.String nor type conversion possible: No type converter available to convert from type: java.lang.String to the required type: org.apache.mina.filter.codec.ProtocolCodecFactory with value hl7codec</strong>
  ! at org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:588)
  ! at org.apache.camel.util.IntrospectionSupport.setProperty(IntrospectionSupport.java:616)
  ! at org.apache.camel.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:473)
  ! at org.apache.camel.util.IntrospectionSupport.setProperties(IntrospectionSupport.java:483)
  ! at org.apache.camel.util.EndpointHelper.setProperties(EndpointHelper.java:255)
  ! at org.apache.camel.impl.DefaultComponent.setProperties(DefaultComponent.java:257)
  ! at org.apache.camel.component.mina.MinaComponent.createEndpoint(MinaComponent.java:92)
  ! at org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:114)
  ! at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:568)
  ! ... 33 common frames omitted
  ! Causing: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: mina://tcp://localhost:4444?codec=hl7codec&amp;sync=true due to: Could not find a suitable setter for property: codec as there isn't a setter method with same type: java.lang.String nor type conversion possible: <strong>No type converter available to convert from type: java.lang.String to the required type: org.apache.mina.filter.codec.ProtocolCodecFactory with value hl7codec</strong>
  ! at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:588)
  ! at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:79)</p>