ObjectHelper.notNull(getJpaTemplate(), "jpaTemplate", this);
ObjectHelper.notNull(getTransactionTemplate(), "transactionTemplate", this);
// lets add the monitoring service - should there be an easier way??
if (engine == null) {
engine = new ActivityMonitorEngine(getJpaTemplate(), getTransactionTemplate(), getProcessRules());
}
CamelContext camelContext = getContext();
if (camelContext instanceof DefaultCamelContext) {
DefaultCamelContext defaultCamelContext = (DefaultCamelContext) camelContext;
defaultCamelContext.addService(engine);