code: private static void copyProperties(Map<String, JsonNode> props, Schema schema) {
      Preconditions.checkNotNull(schema);
  
      // (if null, don't copy but do not throw exception)
      if (null != props) {
        for (Map.Entry<String, JsonNode> prop : props.entrySet()) {
          schema.addProp(prop.getKey(), prop.getValue());
        }
      }
    }
docs: *
  Copy properties to an Avro Schema
  @param props Properties to copy to Avro Schema
  @param schema Avro Schema to copy properties to