code: public Object resolveProperty(Object object, List<String> propertyNames) {
      // Always wrap base object.
      Object value = resolver.wrap(object);
  
      for (String propertyName : propertyNames) {
        if (value == null) {
          return null;
        }
  
        value = resolver.getValue(elContext, value, propertyName);
      }
  
      return value;
    }
docs: Resolve property of bean.
  
  @param object
  Bean.
  @param propertyNames
  Names of properties to resolve recursively.
  @return Value of property.