Beispiel #1
0
 /** *********************************************************************** */
 private Document parseTemplateXML() {
   InputStream templateInputStream = null;
   try {
     templateInputStream = getClass().getClassLoader().getResourceAsStream(getTemplateLocation());
     return XMLDomUtils.getTemplateDom(templateInputStream);
   } finally {
     if (templateInputStream != null) {
       try {
         templateInputStream.close();
       } catch (IOException e) {
         // ignore, closing..
       }
     }
   }
 }