@Override
    public void stop(BundleContext ctx) {
        // not sure how to test that loading and unloading multiple times actually works,
        // but this should in theory do the necessary thing.
        for (String libName : LIBRARY_NAMES) {
            String skipProp = ONNX_PREFIX + libName + SKIP_SUFFIX;
            if (SKIP_VALUE.equals(System.getProperty(skipProp))) {
                log.fine("will unload native library: "+libName);
            }
            System.clearProperty(skipProp);
        }
    }
@author arnej
Loads native libraries when the bundle is activated.
Use system properties to ensure onnxruntime won't try
to load them itself.
container-onnxruntime/src/main/java/ai/vespa/onnxruntime/OnnxBundleActivator.java