RefObject ref = (RefObject)bean;
RefObject descriptor = ref.refMetaObject();
// Lookup the property descriptor.
// Lookup the attribute with the requested name,
// return the type pointed by the attribute.
Iterator propertyIter = ((Collection)descriptor.refGetValue("contents")).iterator();
while(propertyIter.hasNext())
{
RefObject attribute = (RefObject)propertyIter.next();
if( propertyName.equals( attribute.refGetValue( "name" ) ) )
{