'Helper function. Given an object id, return the actual object.'

def __get_object(self, object_id):

    if object_id.startswith('___NEW___'):
        return self.object_cache[object_id][1]
    (otype, oname) = object_id.split('::', 1)
    return self.api.get_item(otype, oname)
