code: public Object getProperty(String property) {
          /** @todo we should check if we have the property with the metaClass instead of try/catch  */
          try {
              return super.getProperty(property);
          }
          catch (MissingPropertyException e) {
              return getVariable(property);
          }
      }
docs: Overloaded to make variables appear as bean properties or via the subscript operator