output.output(_message, writer);
String xml = writer.toString();
if (LOG.isDebugEnabled()) {
LOG.debug("Chargeback Amount Notification received: [" + xml + "]");
}
ChargebackAmountNotification notification = (ChargebackAmountNotification) Unmarshaller.unmarshal(ChargebackAmountNotification.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);