code: public static Header findHeader(HttpResponse response, String headerName) {
  		Header[] headers = response.getHeaders(headerName);
  		return headers.length > 0 ? headers[0] : null;
  	}
docs: Returns the first header with the given name (case-insensitive) or null.