code: private Map<String, String> getEnvironment() {
          return AccessController.doPrivileged(new PrivilegedAction<Map<String, String>>() {
              @Override
              public Map<String, String> run() {
                  return System.getenv();
              }
          });
      }
docs: Get the system environment variables in a doPrivileged block.
  
  @return the process environment variables