code: @Override
    public Configuration getServiceConfiguration() {
  
      final Configuration partialServiceConf = ServiceConfiguration.CONF
          .set(ServiceConfiguration.SERVICES, taskOutputStreamProvider.getClass())
          .set(ServiceConfiguration.ON_CONTEXT_STOP, ContextStopHandler.class)
          .set(ServiceConfiguration.ON_TASK_STARTED, TaskStartHandler.class)
          .build();
  
      return Tang.Factory.getTang()
          .newConfigurationBuilder(partialServiceConf)
          .bindImplementation(OutputStreamProvider.class, taskOutputStreamProvider.getClass())
          .bindImplementation(TaskOutputStreamProvider.class, taskOutputStreamProvider.getClass())
          .bindNamedParameter(OutputPath.class, outputPath)
          .build();
    }
docs: Provides a service configuration for the output service.
  
  @return service configuration.