code: public YarnSubmissionHelper setJobSubmissionEnvMap(final Map<String, String> map) {
      for (final Map.Entry<String, String> entry : map.entrySet()) {
        environmentVariablesMap.put(entry.getKey(), entry.getValue());
      }
      return this;
    }
docs: Sets environment variable map.
  @param map
  @return