private String readTemplate(String path) throws IOException {
        try (InputStream is = getClass().getClassLoader().getResourceAsStream(
                Paths.get("application_package_template", path).toString())) {
            if (is == null) {
                throw new IOException("Could not find template: " + path);
            }
            return new String(is.readAllBytes(), StandardCharsets.UTF_8);
        } catch (IOException e) {
            logger.error("Error reading template: {}", e.getMessage());
            throw e;
        }
    }
Reads a template file from the "resources/application_package_template" directory.

@param path The path to the template file
@return The content of the template file
@throws IOException if an error occurs while reading the template file
integration/logstash-plugins/logstash-output-vespa/src/main/java/org/logstashplugins/VespaAppPackageWriter.java