public String load(HDF hdf, String filename) throws IOException {
return loadResource(filename, resourceLoader);
}
};
HDF hdf = factory.newHdf();
try {
// Copy the Data into the HDF.
hdf.readString(data.toString());
CS cs = factory.newCs(hdf);
try {
cs.setFileLoader(fileLoader);
cs.parseFile(templateName);
output.append(cs.render());
} finally {
cs.close();
}
} finally {
hdf.close();
}
}