code: @Override
      public void setProperties(Properties properties) {
          if (this.env == null) {
              this.env = properties;
          } else {
              this.env.putAll(properties);
          }
  
          if (baseGateway != null) {
              baseGateway.setProperties(properties);
          }
      }
docs: Configure a new Gateway instance with the given environment properties.