final String xml = writer.getBuffer().toString();
xmlReader.parse(new InputSource(new StringReader(xml)));
T sig = (T) mb.getModel();
return sig;
} catch (ParserConfigurationException e) {
throw new SignatureParseException(e);
} catch (SAXException e) {
throw new SignatureParseException(e);
} catch (IOException e) {
throw new SignatureParseException(e);
} catch (IllegalArgumentException e) {
throw new SignatureParseException(e);
}
}