bpre.setNameSpace(e.getNamespaceURI());
/* We must use a type that implements BPE's IFormattableValue interface
* since otherwise the value will get wrapped in a CannedFormattableValue
* which has undesireable side effects.
*/
DocumentFormattableValue documentFormattableValue = new DocumentFormattableValue(fault);
bpre.addPartMessage(partName, documentFormattableValue);
throw bpre;
} else {
try {
nm = me.getMessage("out");
if (nm != null) {
/* We must use a type that implements BPE's IFormattableValue interface
* since otherwise the value will get wrapped in a CannedFormattableValue
* which has undesireable side effects.
*/
Document out = transformer.toDOMDocument(nm);
DocumentFormattableValue documentFormattableValue = new DocumentFormattableValue(out);
output.put(outputPartName, documentFormattableValue);
}
me.setStatus(ExchangeStatus.DONE);
} catch (Exception e) {
me.setError(e);