Changed java examples to avoid running future outside of circuit breaker