code: private Configuration getTaskConfiguration(final String taskId) {
      try {
        return TaskConfiguration.CONF
            .set(TaskConfiguration.IDENTIFIER, taskId)
            .set(TaskConfiguration.TASK, SleepTask.class)
            .build();
      } catch (final BindException ex) {
        LOG.log(Level.SEVERE, "Failed to create  Task Configuration: " + taskId, ex);
        throw new RuntimeException(ex);
      }
    }
docs: Build a new Task configuration for a given task ID.
  
  @param taskId Unique string ID of the task
  @return Immutable task configuration object, ready to be submitted to REEF.
  @throws RuntimeException that wraps BindException if unable to build the configuration.