make getLastObjectId public