final URL url = new URL("http://json-ld.org/contexts/person.jsonld");
DocumentLoader.fromURL(url);
// Now try to get it again and ensure it is
// cached
final HttpClient client = new CachingHttpClient(DocumentLoader.getHttpClient());
final HttpUriRequest get = new HttpGet(url.toURI());
get.setHeader("Accept", DocumentLoader.ACCEPT_HEADER);
final HttpContext localContext = new BasicHttpContext();
final HttpResponse respo = client.execute(get, localContext);
EntityUtils.consume(respo.getEntity());
// Check cache status
// http://hc.apache.org/httpcomponents-client-ga/tutorial/html/caching.html
final CacheResponseStatus responseStatus = (CacheResponseStatus) localContext