public void destroy() throws Exception {
    SourceConfigManager sourceConfigManager = getSourceConfigManager();
    for (String sourceName : sourceConfigManager.getSourceNames()) {
      removeSourceService(sourceName);
    }

    super.destroy();
  }
  public void init() throws Exception {

    super.init();

    SourceConfigManager sourceConfigManager = getSourceConfigManager();
    for (String sourceName : sourceConfigManager.getSourceNames()) {
      createSourceService(sourceName);
    }
  }
  public Collection<String> getSourceNames() throws Exception {

    PartitionConfig partitionConfig = getPartitionConfig();
    SourceConfigManager sourceConfigManager = partitionConfig.getSourceConfigManager();

    Collection<String> list = new ArrayList<String>();
    list.addAll(sourceConfigManager.getSourceNames());

    return list;
  }