To further clarify things, I have a class known as RMG2BUF. The request string is parsed and it builds a tree structure, each node being of type RMG2NODE. RMG2BUF class provides a way of traversing this tree and getting the value of any required fields. Now these fields have to be mapped to particular field in objects of 6 different request classes that I told earlier. The different request classes like CreateTTRequest,ModifyTTRequest,CancelTTRequest etc share many common fields. I want to do the fetching of values from RMG2BUF at only one place and I do not want to repeat it in setting common fields of different requests. I want to create something like a utility class which provides functions to set all the fields comprising all the requests but it should set it in the the request class object that I have passed