code: private Templates getTemplates(String filename) {
  	// InputStream is =
  	// AnnotationViewGenerator.class.getResourceAsStream(filename);
  	Templates templates;
  	InputStream is = null;
  	try {
  	    is = ResourceHelper.getInputStream("viewer/" + filename);
  	    templates = mTFactory.newTemplates(new StreamSource(is));
  	} catch (Exception e) {
  	    throw new UIMARuntimeException(e);
  	} finally {
  	    IOUtils.closeQuietly(is);
  	}
  	return templates;
      }
docs: Parses an XML file and produces a Templates object.
  
  @param filename
  name of .xsl file, to be looked up in the classpath, under the
  same package as this class.
  @return Templates object usable for XSL transformation