// Issue Report.
printIssueReport(er, ps);
// Validation report.
try {
reportSerializer.serialize(er.getValidationReport(), ps);
} catch (SerializationException se) {
ps.println("An error occurred while serializing error.");
se.printStackTrace(ps);
}
ps.println("</report>");