/**
   * initialize the cep service here.
   *
   * @param context
   */
  protected void activate(ComponentContext context) {

    try {
      EmailMonitorServiceInterface emailMonitorServiceInterface =
          EmailMonitorValueHolder.getInstance().getEmailMonitorService();
      context
          .getBundleContext()
          .registerService(
              EmailMonitorServiceInterface.class.getName(), emailMonitorServiceInterface, null);
      log.info("Successfully deployed the Email Monitor Service");
    } catch (Throwable e) {
      log.error("Can not create the Email Monitor Service ", e);
    }
  }
 protected void setRegistryService(RegistryService registryService) {
   EmailMonitorValueHolder.getInstance().setRegistryService(registryService);
 }
 protected void unsetOutputEventAdaptorService(
     OutputEventAdaptorManagerService outputEventAdaptorManagerService) {
   EmailMonitorValueHolder.getInstance()
       .unsetsetOutputEventAdaptorManagerService(outputEventAdaptorManagerService);
 }
 protected void unsetEventProcessorService(EventProcessorService eventProcessorService) {
   EmailMonitorValueHolder.getInstance().unsetEventProcessorService();
 }
 protected void unsetEventFormatterService(EventFormatterService eventFormatterService) {
   EmailMonitorValueHolder.getInstance().unsetEventFormatterService(eventFormatterService);
 }
 protected void unsetEventStreamService(EventStreamService eventStreamService) {
   EmailMonitorValueHolder.getInstance().unsetEventStreamService();
 }