private String processTemplate(String template, String fieldName, String fieldType,
                                  String arraySize, boolean isDocumentField) {
        String result = template.replace("{{FIELD_NAME}}", fieldName);
        if (arraySize != null) {
            result = result.replace("{{ARRAY_SIZE}}", arraySize);
        }
        if (isDocumentField) {
            // To make reading easier, let's pre-pend the field definition
            // with the field name and type
            String annotation = "       # " + fieldName + ": " + fieldType;
            if (arraySize != null) {
                annotation += "[" + arraySize + "]";
            }
            result = annotation + "\n" + result;
        }
        return result;
    }
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