@classmethod
def list_in_registry(cls, registry_id: str=None, registry_name: str=None,
    **params):
    """List instances contained in the registry.

        :param registry_id: registery id. If none, 'registry_name' must be provided.
                :param registry_name: registry name. If None, 'registry_id' must be provided
                :param params: additional search parameters
                :return: list of models in registry
        """
    if registry_id is None:
        registry_id = cls.session.Registry.find_registry(id=registry_id,
            name=registry_name).id
    return cls.list(registry_id=registry_id, **params)
