What gives you that method?

As I can see it takes data from database, setHasChanges field new object and then does nothing so garbage collector "consumes" that object.