private String contentAsString(Reader pageReader) throws IOException {
        BufferedReader bufferedReader=new BufferedReader(pageReader);
        StringBuilder b=new StringBuilder();
        String line;
        while (null!=(line=bufferedReader.readLine())) {
            b.append(line);
            b.append("\n");
        }
        return b.toString();
    }
Creates from an application package. The passed readers will be closed.
config-model/src/main/java/com/yahoo/vespa/model/container/search/PageTemplates.java