def METHOD_NAME(self, fetched_row):
    id = fetched_row['id']
    raw_app = fetched_row['doc']
    if not raw_app:
        print(f'no associated app found for: {id}', file=self.log_file)
        return None
    try:
        return Application.wrap(raw_app)
    except (BadValueError, WrappingAttributeError, ValueError, AssertionError):
        print(f'could not wrap app: {raw_app["_id"]}', file=self.log_file)
        return None