class ZuulBlockFallbackManager {

    public static synchronized void registerProvider(ZuulBlockFallbackProvider provider) {
        AssertUtil.notNull(provider, "fallback provider cannot be null");
        String route = provider.getRoute();
        if ("*".equals(route) || route == null) {
            defaultFallbackProvider = provider;
        } else {
            fallbackProviderCache.put(route, provider);
        }
    }

}