code: public static void setPropertyReference(BeanDefinitionBuilder builder, String beanReference, String propertyName) {
          if (StringUtils.hasText(beanReference)) {
              builder.addPropertyReference(propertyName, beanReference);
          }
      }
docs: Sets the property reference on bean definition in case reference
  is set properly.
  
  @param builder the bean definition builder to be configured
  @param beanReference bean reference to populate the property
  @param propertyName the name of the property