code: private void applyPropertyOverride(PropertyMetadata propertyMetadata) {
      String name = propertyMetadata.getName();
      Property override = entityMetadata.getPropertyOverride(name);
      if (override != null) {
        String mappedName = override.name();
        if (mappedName != null && mappedName.trim().length() > 0) {
          propertyMetadata.setMappedName(mappedName);
        }
        propertyMetadata.setIndexed(override.indexed());
        propertyMetadata.setOptional(override.optional());
      }
  
    }
docs: Applies any override information for the property with the given metadata.
  
  @param propertyMetadata
  the metadata of the property