@Override
  public void start(PlatformServiceContainer contanier) {

    processEngineFactory.setProcessEngineConfiguration(processEngineConfiguration);
    processEngineFactory.setBundle(context.getBundle());
    processEngineFactory.init();

    processEngine = processEngineFactory.getObject();

    registration =
        context.registerService(
            ProcessEngine.class, processEngine, new Hashtable<String, String>());
  }
 @Override
 public void stop(PlatformServiceContainer container) {
   registration.unregister();
   processEngineFactory.destroy();
 }