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