docs: private String getAttribute(BeanDefinition beanDefinition, String attributeName) {
          String value = null;
          
          while (beanDefinition != null) {
              value = (String) beanDefinition.getAttribute(attributeName);
              
              if (value != null) {
                  break;
              }
              
              beanDefinition = beanDefinition.getOriginatingBeanDefinition();
          }
          
          return value;
      }