/** * @param omElement * @return * @throws XMLParserException */ public static Element convertOMToDOM(OMElement omElement) throws XMLParserException { try { return XMLUtils.toDOM(omElement); } catch (Exception ex) { throw new XMLParserException("Unable to convert OMElement to Element: " + ex.getMessage()); } }