code: private static Configuration getClientConfiguration(
        final Configuration commandLineConf, final boolean isLocal) throws BindException, InjectionException {
  
      final Configuration runtimeConfiguration;
  
      if (isLocal) {
        LOG.log(Level.FINE, "Running on the local runtime");
        runtimeConfiguration = LocalRuntimeConfiguration.CONF
            .set(LocalRuntimeConfiguration.MAX_NUMBER_OF_EVALUATORS, MAX_NUMBER_OF_EVALUATORS)
            .build();
      } else {
        LOG.log(Level.FINE, "Running on YARN");
        runtimeConfiguration = YarnClientConfiguration.CONF.build();
      }
  
      return Configurations.merge(runtimeConfiguration, cloneCommandLineConfiguration(commandLineConf));
    }
docs: Parse command line arguments and create TANG configuration ready to be submitted to REEF.
  
  @param commandLineConf Parsed command line arguments, as passed into main().
  @return (immutable) TANG Configuration object.
  @throws BindException      if configuration commandLineInjector fails.
  @throws InjectionException if configuration commandLineInjector fails.