class CircuitBreakerBeanFactory extends CircuitBreakerFactory implements InitializingBean {

    public CircuitBreakerBean findCircuitBreakerBean(String name) {
        CircuitBreaker circuitBreaker = findCircuitBreaker(name);

        if (circuitBreaker instanceof CircuitBreakerBean) {
            return (CircuitBreakerBean) circuitBreaker;
        }
        return null;
    }

}