class ExceptionContentHandler extends ContentHandler {

    public ServiceExceptionReport getContent(InputStream stream, URL url, String contentType)
    {
        ServiceExceptionReport ser = getReport(stream, url, contentType);

        if (ser != null)
        {
            for (ServiceException se : ser.getServiceException())
            {
                LOGGER.warn("Service exception received for url [" + url + "]: code [" + se.getCode() + "] value ["
                        + se.getvalue() + "]");
            }
        }

        return ser;
    }

}