code: private String createCertificateStore(String resourceName) throws IOException {
          URL resource = StubServer.class.getResource("/" + resourceName);
          File store = File.createTempFile(resourceName, "store");
          try (InputStream input = resource.openStream()) {
              Files.copy(input, store.toPath(), StandardCopyOption.REPLACE_EXISTING);
          } finally {
              store.deleteOnExit();
          }
          return store.getAbsolutePath();
      }
docs: Copy the Certificate store to the temporary directory, as it needs to be in a real file, not inside a jar for Grizzly to pick it up.
  @param resourceName The Store to copy
  @return The absolute path to the temporary keystore.
  @throws IOException If the store could not be copied.