protected void activate(ComponentContext context) {

    BundleContext bundleContext = context.getBundleContext();
    WorkflowManagementService workflowService = new WorkflowManagementServiceImpl();

    bundleContext.registerService(WorkflowManagementService.class, workflowService, null);
    WorkflowServiceDataHolder.getInstance().setWorkflowService(workflowService);

    WorkflowServiceDataHolder.getInstance().setBundleContext(bundleContext);
  }
 protected void unsetWorkflowRequestDeleteListener(
     WorkflowRequestDeleteListener workflowRequestDeleteListener) {
   if (workflowRequestDeleteListener != null) {
     WorkflowServiceDataHolder.getInstance()
         .getWorkflowRequestDeleteListenerList()
         .remove(workflowRequestDeleteListener);
   }
 }
  protected void unsetWorkflowRequestHandler(WorkflowRequestHandler workflowRequestHandler) {

    WorkflowServiceDataHolder.getInstance().removeWorkflowRequestHandler(workflowRequestHandler);
  }
  protected void setConfigurationContextService(ConfigurationContextService contextService) {

    WorkflowServiceDataHolder.getInstance().setConfigurationContextService(contextService);
  }
  protected void unsetRealmService(RealmService realmService) {

    WorkflowServiceDataHolder.getInstance().setRealmService(null);
  }
  protected void unsetWorkflowImplementation(AbstractWorkflow workflowImplementation) {

    WorkflowServiceDataHolder.getInstance().removeWorkflowImplementation(workflowImplementation);
  }
  protected void unsetTemplate(AbstractTemplate template) {

    WorkflowServiceDataHolder.getInstance().removeTemplate(template);
  }