code: public static Class getPropertyClass(Class parentClass, String propertyName) throws IllegalArgumentException {
  		if (parentClass == null)
  			throw new IllegalArgumentException("theClass == null");
  		if (propertyName == null)
  			throw new IllegalArgumentException("propertyName == null");
  
  		final Method getterMethod = getReadMethod(parentClass, propertyName);
  		if (getterMethod != null) {
  			return getterMethod.getReturnType();
  		}
  
  		final Method setterMethod = getWriteMethod(parentClass, propertyName);
  		if (setterMethod != null) {
  			return setterMethod.getParameterTypes()[0];
  		}
  
  		throw new IllegalArgumentException(propertyName + " is not a property of " + parentClass);
  	}
docs: Returns the class of the property.
  <p />
  
  For example, getPropertyClass(JFrame.class, "size") would return the
  java.awt.Dimension class.
  
  @param parentClass the class to look for the property in
  @param propertyName the name of the property
  
  @return the class of the property; never null
  
  @throws IllegalArgumentException if either argument is null
  @throws IllegalArgumentException <tt>propertyName</tt> is not a
  property of <tt>parentClass</tt>