code: private Response writeResource(final String method, final String body) throws IOException {
  		buildQueryString();
  		buildHeaders();
  
  		connection.setDoOutput(true);
  		connection.setRequestMethod(method);
  
  		writer = new OutputStreamWriter(connection.getOutputStream());
  		writer.write(body);
  		writer.close();
  
  		return readResponse();
  	}
docs: A private method that handles issuing POST and PUT requests
  
  @param method
  POST or PUT
  @param body
  The body of the Message
  @return the {@link Response} from the server
  @throws IOException