code: public static void addPropertyIfNotNull(BeanDefinition definition, String propertyName, Object propertyValue) {
          if (propertyValue != null) {
              definition.getPropertyValues().add(propertyName, propertyValue);
          }
      }
docs: Adds the property to the bean definition if the values it not empty
  
  @param definition    the bean definition
  @param propertyName  the property name
  @param propertyValue the property value