def METHOD_NAME(cls, _db, storage_name=None):
    """Find the ExternalIntegration for the mirror by storage name."""
    from .model import ExternalIntegration
    qu = _db.query(ExternalIntegration).filter(
        ExternalIntegration.goal==cls.STORAGE_GOAL,
        ExternalIntegration.name==storage_name
    )
    integrations = qu.all()
    if not integrations:
        raise CannotLoadConfiguration(
            "No storage integration with name '%s' is configured." % storage_name
        )
    [integration] = integrations
    return integration