docs: protected void copy(final CacheEntry cacheEntry, final InputStream is, final ServletOutputStream ostream) throws IOException {
  
  		IOException exception = null;
  		InputStream resourceInputStream = null;
  
  		// Optimization: If the binary content has already been loaded, send
  		// it directly
  		final Resource resource = cacheEntry.getResource();
  		if (resource != null) {
  			final byte buffer[] = resource.getContent();
  			if (buffer != null) {
  				ostream.write(buffer, 0, buffer.length);
  				return;
  			}
  			resourceInputStream = resource.streamContent();
  		} else {
  			resourceInputStream = is;
  		}
  
  		final InputStream istream = new BufferedInputStream(resourceInputStream, getInputBufferSize());
  
  		// Copy the input stream to the output stream
  		exception = copyRange(istream, ostream);
  
  		// Clean up the input stream
  		istream.close();
  
  		// Rethrow any exception that has occurred
  		if (exception != null)
  			throw exception;
  	}