private VespaModel createVespaModel() {
        try {
            List<MlModelImporter> modelImporters = List.of(new VespaImporter(),
                                                           new OnnxImporter(),
                                                           new XGBoostImporter(),
                                                           new LightGBMImporter());
            DeployState deployState = new DeployState.Builder()
                    .applicationPackage(FilesApplicationPackage.fromFile(path.toFile(), true))
                    .modelImporters(modelImporters)
                    .deployLogger((level, s) -> { })
                    .accessLoggingEnabledByDefault(false)
                    .build();
            return new VespaModel(new NullConfigModelRegistry(), deployState);
        } catch (IOException | SAXException e) {
            throw new IllegalArgumentException("Error creating application from '" + path + "'", e);
        }
    }
Factory method to create an Application from an application package.
This method allows deploying OSGi bundles(contained in the components subdirectory).
All the OSGi bundles will share the same class loader.

@param file the reference to the application package to use
@return a new JDisc instance
application/src/main/java/com/yahoo/application/Application.java