Fixed bug, where it was calling reader.getOwnerId erroneously for getting the object type attribute. Also, added the block of code to get the ownerId where it previously did not exist.
Authored by: payette 2006-12-06
Parent: [r5332]
Child: [r5334]