throws XmlParseException {
Document document = null;
try {
document = XmlDom4JHelper.getDocFromStream( new ByteArrayInputStream( strXml.getBytes() ), resolver );
} catch ( DocumentException e ) {
throw new XmlParseException( Messages.getInstance().getErrorString(
"XmlDom4JHelper.ERROR_0001_UNABLE_TO_GET_DOCUMENT_FROM_STRING" ), e ); //$NON-NLS-1$
} catch ( IOException e ) {
throw new XmlParseException( Messages.getInstance().getErrorString(
"XmlDom4JHelper.ERROR_0002_UNSUPPORTED_ENCODING" ), e ); //$NON-NLS-1$
}
return document;
}