code: public void setObjects(Map<String, Object> objects) {
          for (Map.Entry<String, Object> entry: objects.entrySet()) {
              js.put(entry.getKey(), entry.getValue());
          }
      }
docs: Provides objects to the JavaScript engine under various names.