code: @Override
    public void play(SourceFactory sourceFactory, Sink<Event> sink) {
      LOG.info("Actions will be played using one source.");
      Source source = null;
      try {
        source = sourceFactory.create();
      } catch (InitializationFailedException e) {
        LOG.error("Source initialization failed. Can not proceed with playing, stopping...", e);
        return;
      }
  
      try {
        play(sink, source);
      } finally {
        source.close();
      }
    }
docs: (non-Javadoc)
  
  @see com.sematext.ag.Player#play(com.sematext.ag.source.SourceFactory, com.sematext.ag.sink.Sink)