// create a default redelivery policy and add it to the resource registry
RedeliveryPolicy redeliveryPolicy = new RedeliveryPolicy();
resourceRegistry.putResource(RedeliveryPolicy.class, redeliveryPolicy);
// create a default message store and add it to the registry
MessageStore messageStore = new DefaultMessageStore();
resourceRegistry.putResource(MessageStore.class, messageStore);
camelContext = new DefaultCamelContext();
resourceRegistry.putResource(CamelContext.class, camelContext);