}
private CamelContext createInnerContext() throws Exception {
// Create a camel context to be encapsulated by the routebox
JndiRegistry innerRegistry = new JndiRegistry(createJndiContext());
BookCatalog catalogBean = new BookCatalog();
innerRegistry.bind("library", catalogBean);
CamelContext innerContext = new DefaultCamelContext(innerRegistry);
innerContext.addRoutes(new SimpleRouteBuilder());