docs: public void setUpdates(final Map<String, Object> updates) {
          Map<String, Update> finalUpdatesMap = new HashMap<>();
          for (Map.Entry<String, Object> entry: updates.entrySet()) {
              String property = entry.getKey();
              Update update;
              if (entry.getValue() instanceof Update) {
                  update = (Update) entry.getValue();
                  update.property = property;
              } else if (entry.getValue() instanceof String) {
                  String value = (String) entry.getValue();
                  update = new Update();
                  update.property = property;
                  update.setValueKey(value);
              } else {
                  throw new IllegalArgumentException(
                          "Update property " + property + " has a non-string and non-!updatePdfConfigUpdate " +
                                  "value: " + entry.getValue() + "(" + entry.getValue().getClass() + ")");
              }
  
              finalUpdatesMap.put(property, update);
          }
          this.updates = finalUpdatesMap;
      }