protected final void writeException(String _errorCode, String _message,
APICredential _credentials, Exception _exception,
HttpServletResponse _response) throws ServletException {
try {
APIUtil.writeXML(new PayPalError(_errorCode, _message,
_credentials, _exception), _response);
} catch (MarshalException e) {
if (LOG.isErrorEnabled()) {
LOG.error(
"Error writing error XML: " + e.getLocalizedMessage(),