code: @Override
      public synchronized InputStream getInputStream() throws IOException {
          if (connected == false) {
              // Implicitly open the connection if it has not yet been done so.
              connect();
          }
  
          Object token = ThreadIdentityManager.runAsServer();
          try {
              if (inputStream == null) {
                  if ("".equals(archivePath)) {
                      inputStream = new FileInputStream(urlTargetFile);
                  } else {
                      inputStream = new FilterZipFileInputStream(urlTargetFile, archivePath);
                  }
              }
          } finally {
              ThreadIdentityManager.reset(token);
          }
  
          return inputStream;
      }
docs: /*
  Passthrough operations for archive referencing wsjar URL support. Synchronized because calling getInputStream()
  while an InputStream is still active should return the active InputStream.