protected Map<String, String> getEnvironment() {
    final Map<String, String> environment = new HashMap<>();

    environment.putAll(LoginHandlerInterceptor.getEnvironment());
    environment.put(Gfsh.ENV_APP_NAME, Gfsh.GFSH_APP_NAME);

    return environment;
  }
Gets the environment setup during this HTTP/command request for the current command process
execution.

@return a mapping of environment variables to values.
@see LoginHandlerInterceptor#getEnvironment()
geode-web/src/main/java/org/apache/geode/management/internal/web/controllers/AbstractCommandsController.java