def get_object_record(self, pid):
        """Get an object that has already been cached in the object tree.

        Caching happens when the object tree is refreshed.

        """
        try:
            return self._cache['records'][pid]
        except KeyError:
            raise d1_onedrive.impl.onedrive_exceptions.ONEDriveException('Unknown PID')