protected void stopCamelContext() throws Exception {
   if (camelContextService != null) {
     camelContextService.stop();
   } else {
     if (context != null) {
       context.stop();
     }
   }
 }
 protected void startCamelContext() throws Exception {
   if (camelContextService != null) {
     camelContextService.start();
   } else {
     if (context instanceof DefaultCamelContext) {
       DefaultCamelContext defaultCamelContext = (DefaultCamelContext) context;
       if (!defaultCamelContext.isStarted()) {
         defaultCamelContext.start();
       }
     } else {
       context.start();
     }
   }
 }