What does your doPCSearch method look like? Normally what I've seen is in the route definition, the .process() call instantiates a Processor (a class implementing the Processor interface), and there you could define your ObjectMapper as a class variable and use it in the process() method.