In internal code and examples, replace calls to getObjectID() and getGeneration() with calls to getObjGen() where possible.