public List<RuleTemplateBo> parseRuleTemplates(InputStream input) throws IOException, XmlException { try { Document doc = XmlHelper.trimSAXXml(input); Element root = doc.getRootElement(); return parseRuleTemplates(root); } catch (JDOMException e) { throw new XmlException("Parse error.", e); } catch (SAXException e) { throw new XmlException("Parse error.", e); } catch (ParserConfigurationException e) { throw new XmlException("Parse error.", e); } }