code: private void cacheResource() {
  
          WsLocationAdmin locSvc = WsLocationAdminImpl.getInstance();
          File tempFile = locSvc.getBundleFile(this, CACHED_RESOURCE_FILE_NAME_PREFIX + url.toString().hashCode());
  
          WsResource resource = locSvc.asResource(tempFile, true);
  
          try {
              moveTo(resource);
              this.cachedResource = resource;
              setLastModified(System.currentTimeMillis());
          } catch (IOException e) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "IOException while attempting to cache resource", e);
          }
  
      }
docs: @throws IOException