private void invalidateZipReference(@Nullable ScheduledFuture<?> expectedInvalidationRequest) {
      myLock.lock();
      try {
        if (myFile == null || expectedInvalidationRequest != null && myInvalidationRequest != expectedInvalidationRequest) {
          return; // already closed || the handler is re-acquired
        }
        if (myInvalidationRequest != null) {
          myInvalidationRequest.cancel(false);
          myInvalidationRequest = null;
        }
        try {
          myFile.close();
        }
        catch (IOException e) {
          LOG.info(e);
        }
        myFile = null;
      }
      finally {
        myLock.unlock();
      }
    }
private void invalidateZipReference(@Nullable ScheduledFuture<?> expectedInvalidationRequest)