Hi,
The issue is fixed now. The attribute 'View' in the super class of the copied class was pointing to the original class. I have changed the attribute and also changed the constructor of the class to point to the correct class.
Awarding points to both of you for providing helpful ideas.
Thanks,
Samrat.