@property
    @memoized
    def app(self):
        try:
            app = Application.get(self.app_id)
            assert app.doc_type is 'Application'
            return app
        except (ResourceNotFound, __HOLE__):
            return None
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/cloudcare/models.py/AppGroup.app