output.output(_message, writer);
String xml = writer.toString();
if (LOG.isDebugEnabled()) {
LOG.debug("Refund Amount Notification received: [" + xml + "]");
}
RefundAmountNotification notification = (RefundAmountNotification) Unmarshaller.unmarshal(RefundAmountNotification.class, new StringReader(writer.toString()));
handleNotification(notification);
} catch (MarshalException e) {
throw new HandlerException("Error marshalling XML: " + e.getLocalizedMessage(), e);
} catch (ValidationException e) {
throw new HandlerException("Error validating XML: " + e.getLocalizedMessage(), e);