When i use methods like Load associated with ObjectRepositoryUtil, QTP is throwing run error. I also know they are not intented to work inside QTP. Please let me know how best we can make use of that?

code snippet
Set RepositoryFrom = CreateObject("Mercury.ObjectRepositoryUtil")
RepositoryFrom.Load "C:\QuickTest\Tests\Flights.tsr"

Set objBrowser = Description.Create()
objBrowser("micclass").value = "Browser"
objBrowser("name").value = "Google"

objRepositoryFrom.Addobject objBrowser,NULL
objRepositoryFrom.UpdateObject objBrowser
objRepositoryFrom.Save