@Override
    public ImportedModel importModel(String modelName, String modelPath) {
        try {
            ImportedModel model = new ImportedModel(modelName, modelPath, ImportedMlModel.ModelType.VESPA);
            new ModelParser(new SimpleCharStream(IOUtils.readFile(new File(modelPath))), model).model();
            return model;
        }
        catch (IOException | ParseException e) {
            throw new IllegalArgumentException("Could not import a Vespa model from '" + modelPath + "'", e);
        }
    }
Imports a model from a Vespa native ranking expression "model" file
model-integration/src/main/java/ai/vespa/rankingexpression/importer/vespa/VespaImporter.java