public ResourceReference(final HttpCacheEntry entry, final ReferenceQueue<HttpCacheEntry> q) {
   super(entry, q);
   if (entry.getResource() == null) {
     throw new IllegalArgumentException("Resource may not be null");
   }
   this.resource = entry.getResource();
 }