}
public boolean isClosed() {
return State.CLOSED.equals(getState());
}
public boolean isFailure(Object result, Throwable failure) {
<BUG>for (BiPredicate<Object, Throwable> predicate : failurePredicates) {
</BUG>
if (predicate.test(result, failure))
return true;
}

}
public <T> CircuitBreaker failIf(Predicate<T> resultPredicate) {
Assert.notNull(resultPredicate, "resultPredicate");
failureConditions.add(Predicates.resultPredicateFor(resultPredicate));
return this;
}
