def METHOD_NAME(self, packages):
    try:
        self.__openAndRefresh(packages.getCacheKey(),
            packages.getRootPackage())
    except sqlite3.Error as e:
        raise BobError("Cannot save directory mapping: " + str(e))
    self.__ready = True