void receiveReport(String msg) {
Matcher matcher = XTRACE_LINE.matcher(msg);
if (matcher.find()) {
Report r = Report.createFromString(msg);
String xtraceLine = matcher.group(1);
XTraceMetadata meta = XTraceMetadata.createFromString(xtraceLine);
if (meta.getTaskId() != null) {
TaskID task = meta.getTaskId();
String taskId = task.toString().toUpperCase();
BufferedWriter fout = fileCache.getHandle(task);
if (fout == null) {
LOG
.warn("Discarding a report due to internal fileCache error: "