refactored the code for related objects
Authored by: gautamj 2003-10-12
Parent: [r561]
Child: [r563]