// save report
HeUpdateRequest updateReq = new HeUpdateRequest(context, event);
updateReq.execute();
HeUpdateReportRequest updateReportReq =
new HeUpdateReportRequest(context, event);
ReportStream reportStream = rp.createReportStream();
InputStream in = null;
try {
in = reportStream.getStream();
updateReportReq.execute(in, reportStream.getLength());
} finally {
if (in != null) {
try {
in.close();
} catch (IOException ex) {