code: public static File copyToDirectory(File resource,
              final String resourceLocation, final File copy)
              throws ResourceDownloadError {
          copy.getParentFile().mkdirs();
          return copyWithDecompression(resource, resourceLocation, copy);
      }
docs: Copies the resolved resource to the system's temporary directory pointed
  to by the system property <tt>java.io.tmpdir</tt>.
  <p>
  GZIP Decompression occur on the file if the cached resource is found to
  contain the {@link #GZIP_MAGIC_NUMBER}. See
  {@link CacheUtil#copyWithDecompression(File, String, File)}.
  </p>
  
  @param resource {@link File}, the resource file to copy from
  @param resourceLocation {@link String}, the resource location url
  @param copy {@link File}, the resource file to copy to
  @return {@link File}, the resource file in the system's temp directory
  @throws ResourceDownloadError Thrown if an IO error copying the resource