Might as well just return:
return response.getFirstHeader("Content-Type").getValue();