def _get_subject(self): import refs if self._subject_entity is None: self._subject_entity = refs.to_entity(self._subject) return self._subject_entity
def _get_entity(self): if self._entity is None: self._entity = refs.to_entity(self.entity_ref) return self._entity