code: private String readAndClose(final InputStream stream) throws IOException {
  		String contents = null;
  
  		if (stream != null) {
  			contents = CharStreams.toString(new InputStreamReader(new BufferedInputStream(stream), "UTF-8"));
  			stream.close();
  		}
  
  		return contents;
  	}
docs: Reads all remaining contents from the stream and closes it
  @param stream The stream
  @return The contents of the stream
  @throws IOException