return executeResult;
} finally {
IOUtils.closeQuietly(errorStream);
}
}
<BUG>private InputStream executeToInputStreamWithRetry(final Callable<ExecuteResult> task) throws CouchException {
int attempts = 10;
CouchException lastException= null;
</BUG>
while (attempts-- > 0) {

return executeResult;
} finally {
IOUtils.closeQuietly(errorStream);
}
}
private <T> T executeWithRetry(final Callable<ExecuteResult> task,
InputStreamProcessor<T> processor) throws
CouchException {
int attempts = 10;
CouchException lastException = null;
while (attempts-- > 0) {
