public void createSourceService(String sourceName) throws Exception {

    SourceService sourceService =
        new SourceService(jmxService, partitionManager, partitionName, sourceName);
    sourceService.init();

    sourceServices.put(sourceName, sourceService);
  }
  public void removeSourceService(String sourceName) throws Exception {
    SourceService sourceService = sourceServices.remove(sourceName);
    if (sourceService == null) return;

    sourceService.destroy();
  }