bson/src/main/org/bson/codecs/pojo/ClassModel.java
public PropertyModel<?> getPropertyModel(final String propertyName) {
        for (PropertyModel<?> propertyModel : propertyModels) {
            if (propertyModel.getName().equals(propertyName)) {
                return propertyModel;
            }
        }
        return null;
    }
public PropertyModel<?> getPropertyModel(final String propertyName) {
        for (PropertyModel<?> propertyModel : propertyModels) {
            if (propertyModel.getName().equals(propertyName)) {
                return propertyModel;
            }
        }
        return null;
    }
Gets a {@link PropertyModel} by the property name.

@param propertyName the PropertyModel's property name
@return the PropertyModel or null if the property is not found