WOResourceManager rm = app.resourceManager();
TransformerFactory fac = TransformerFactory.newInstance();
log.debug("creating template for file " + filename + " in framework " + framework);
InputStream is = rm.inputStreamForResourceNamed(filename, framework, null);
if (is == null) {
log.debug("trying with framework = null");
is = rm.inputStreamForResourceNamed(filename, null, null);
if (is == null) {
throw new IllegalArgumentException("inputStream is null");