I created a new class inheriting the original and made the changes as you suggested and it worked.
I will use that solution rather than modifying the agentry.
Also, can you give me an idea as how easy/difficult the agentry upgrade process is? Do we need to re do all the changes in the new application manually?
Thanks for you help.