code: public Object getProperty(Object object) {
          MetaMethod getter = getGetter();
          if (getter == null) {
              if (field != null) return field.getProperty(object);
              //TODO: create a WriteOnlyException class?
              throw new GroovyRuntimeException("Cannot read write-only property: " + name);
          }
          return getter.invoke(object, MetaClassHelper.EMPTY_ARRAY);
      }
docs: Get the property of the given object.
  
  @param object which to be got
  @return the property of the given object
  @throws RuntimeException if the property could not be evaluated