private static Path stripFileEndingIfFile(Path path, boolean pathIsFile) {
        if ( ! pathIsFile) return path;
        int dotIndex = path.last().lastIndexOf(".");
        if (dotIndex <= 0) return path;
        return path.withLast(path.last().substring(0, dotIndex));
    }
The namespace, or null if none
config-model/src/main/java/com/yahoo/vespa/model/ml/ModelName.java