HttpResponse response = httpClient.execute(get);
switch(response.getStatusLine().getStatusCode()) {
case 200:
log.debug("metadata for resource {} retrieved",uri);
Content content = new StreamContent(response.getEntity().getContent(),response.getEntity().getContentType().getValue(),response.getEntity().getContentLength());
return content;
case 406:
log.error("server does not offer content type {} for resource {}, cannot retrieve", mimeType, uri);
throw new ContentFormatException("server does not offer content type "+mimeType+" for resource "+uri);
case 404: