System.out.println("XML Content that was written prior to exception:");
System.out.println(writer.toString());
throw e;</BUG>
}
<BUG>return writer.toString();
}</BUG>
private synchronized void registerStandardDomainReaders(XMLMapper mapper) throws ModuleLoadException {
mapper.registerRootElement(new QName(Namespace.CURRENT.getUriString(), Element.DOMAIN.getLocalName()), ModelXmlParsers.DOMAIN_XML_READER);
}
private synchronized void registerStandardHostReaders(XMLMapper mapper) throws ModuleLoadException {

System.out.println("XML Content that was written prior to exception:");
System.out.println(new String(baos.toByteArray()));
throw e;
}
finally {
bos.close();
baos.close();
}
return new String(baos.toByteArray());
}
private synchronized void registerStandardDomainReaders(XMLMapper mapper) throws ModuleLoadException {
mapper.registerRootElement(new QName(Namespace.CURRENT.getUriString(), Element.DOMAIN.getLocalName()), ModelXmlParsers.DOMAIN_XML_READER);
}
private synchronized void registerStandardHostReaders(XMLMapper mapper) throws ModuleLoadException {
