code: public void addToEnvironment(String name, Object value) {
          this.environment.set(name, value);
          this.environmentEntries.put(name, value);
      }
docs: Adds element to the drools/jbpm environment - the value must be thread save as it will be shared between all
  <code>RuntimeEngine</code> instances
  @param name name of the environment entry
  @param value value of the environment entry