@Override
public void transform(Writer writer) throws Exception {
if (context!=null && record!=null) {
HeTransformReportRequest request = new HeTransformReportRequest(context, record);
try {
request.execute(getSummaryTemplate(), writer, getParams());
} catch (NullPointerException ex) {
String msg = getMsgBroker().retrieveMessage("catalog.harvest.manage.history.message.readingError");
writer.write(msg);
} catch (TransformerException ex) {
String msg = getMsgBroker().retrieveMessage("catalog.harvest.manage.history.message.readingError");