/** {@inheritDoc} */ public InputStream getInputStream() throws ResourceException { GetMethod getMethod = getResource(); try { return new ConnectionClosingInputStream(getMethod, applyFilter(getMethod.getResponseBodyAsStream())); } catch (IOException e) { throw new ResourceException("Unable to read response", e); } }