code: public EnvVars getEnvironment() throws IOException, InterruptedException {
          EnvVars cachedEnvironment = this.cachedEnvironment;
          if (cachedEnvironment != null) {
              return new EnvVars(cachedEnvironment);
          }
  
          cachedEnvironment = EnvVars.getRemote(getChannel());
          this.cachedEnvironment = cachedEnvironment;
          return new EnvVars(cachedEnvironment);
      }
docs: Returns cached environment variables (copy to prevent modification) for the JVM on this computer.
  If this is the master, it returns the system property of the master computer.