code: public Schema makeRefProperty(String ref, Schema property) {
          Schema newProperty = new SchemaImpl().ref(ref);
  
          this.copyVendorExtensions(property, newProperty);
          return newProperty;
      }
docs: Make a RefProperty
  
  @param ref new property name
  @param property Property
  @return