There is a utility I found the other day that wraps this in a convenience method:

org.apache.streams.util.ComponentUtils.offerUntilSuccess