code: Object getValue(int fieldNum)
      {
          String attributeName = getAttributeName(fieldNum);
          ClassDescriptor cld = broker.getClassDescriptor(pc.getClass());
          
          // field could be a primitive typed attribute...
          AttributeDescriptorBase fld = cld.getFieldDescriptorByName(attributeName);
          // field could be a reference attribute...
          if (fld == null) 
          {
  			fld = cld.getObjectReferenceDescriptorByName(attributeName);
  		}
  		// or it could be a collection attribute:
          if (fld == null) 
          {
  			fld = cld.getCollectionDescriptorByName(attributeName);
  		}        
          Object value = fld.getPersistentField().get(pc);
          return value;
      }
docs: retrieve the value of attribute[fieldNum] from the object.
  @return Object the value of attribute[fieldNum]