title: Start reading Kafka topic from specific Offset in Apache Camel
body: <p>I read all the documentation of Camel Kafka and the only approach I read is this one <a href="https://github.com/apache/camel/blob/master/components/camel-kafka/src/test/java/org/apache/camel/component/kafka/KafkaConsumerOffsetRepositoryResumeTest.java" rel="noreferrer">from git</a> and the route builder that specifies </p>
  
  <pre><code>    public void configure() throws Exception {
                      from("kafka:" + TOPIC
                                   + "?groupId=A"
                                   + "&amp;autoOffsetReset=earliest"             // Ask to start from the beginning if we have unknown offset
                                   + "&amp;consumersCount=2"                     // We have 2 partitions, we want 1 consumer per partition
                                   + "&amp;offsetRepository=#offset")            // Keep the offset in our repository
                              .to("mock:result");
  
  }
  </code></pre>
  
  <p>But for order for the Clients I need to use the Spring so my endpoint for kafka is this </p>
  
  <pre><code>&lt;!--DEFINE KAFKA'S TOPCIS AS ENDPOINT--&gt;
          &lt;endpoint id="tagBlink" uri="kafka:10.0.0.165:9092"&gt;
              &lt;property key="topic" value="tagBlink"/&gt;
              &lt;property key="brokers" value="10.0.0.165:9092"/&gt;
              &lt;property key="offsetRepository" value="100"/&gt;
          &lt;/endpoint&gt;
  </code></pre>
  
  <p>But getting an exception </p>
  
  <blockquote>
    <p>Could not find a suitable setter for property: offsetRepository 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.camel.spi.StateRepository with value 100</p>
  </blockquote>
  
  <p>Is this possible with my current configuration? How can I resume from an specific offset? ? </p>