code: @SuppressWarnings("unchecked")
    public void init(PlayerConfig config) throws InitializationFailedException {
      this.config = config;
      String sourceClassName = config.get(SOURCE_CLASS_CONFIG_KEY);
      if (sourceClassName == null) {
        System.out.println("Missing required property in config: " + SOURCE_CLASS_CONFIG_KEY);
      }
      try {
        sourceClass = (Class<? extends Source>) Class.forName(sourceClassName);
      } catch (ClassNotFoundException e) {
        LOG.fatal("Instantiating source factory failed, " + SOURCE_CLASS_CONFIG_KEY + ": " + sourceClassName, e);
        System.exit(0);
      }
    }
docs: (non-Javadoc)
  
  @see com.sematext.ag.source.SourceFactory#init(com.sematext.ag.PlayerConfig)