@classmethod
def find_in_registry(cls, entity_registry_id: str, registry_id: str=None,
    registry_name: str=None):
    """Get an entity from a registry by their ids.

        :param entity_registry_id: entity registry id
        :param registry_id: registery id. If none, 'registry_name' must be provided.
        :param registry_name: registry name. If None, 'registry_id' must be provided
        :return: instance
        """
    entities = cls.get_in_registry([entity_registry_id], registry_id=
        registry_id, registry_name=registry_name)
    if entities:
        return entities[0]
    return None
