Source:
private void processData() { String timestampString = fData.get(Tag.TIMESTAMP); String timestampInputFormat = fData.get(Key.TIMESTAMP_INPUT_FORMAT); ITmfTimestamp timestamp = null; if (timestampInputFormat != null && timestampString != null) { TmfTimestampFormat timestampFormat = new TmfTimestampFormat(timestampInputFormat); try { long time = timestampFormat.parseValue(timestampString); timestamp = TmfTimestamp.fromNanos(getTrace().getTimestampTransform().transform(time)); setTimestamp(timestamp); } catch (ParseException e) { setTimestamp(TmfTimestamp.ZERO); } } else { setTimestamp(TmfTimestamp.ZERO); } String eventName = fData.get(Tag.EVENT_TYPE); ITmfEventType type = getType(); if (eventName != null && type instanceof CustomEventType) { ((CustomEventType) type).setName(eventName); } List<ITmfEventField> fields = new ArrayList<>(fDefinition.outputs.size()); for (OutputColumn outputColumn : fDefinition.outputs) { Object key = (outputColumn.tag.equals(Tag.OTHER) ? outputColumn.name : outputColumn.tag); String value = fData.get(key); if (outputColumn.tag.equals(Tag.TIMESTAMP) && timestamp != null) { TmfTimestampFormat timestampFormat = new TmfTimestampFormat(fDefinition.timeStampOutputFormat); fields.add(new TmfEventField(outputColumn.name, timestampFormat.format(timestamp.getValue()), null)); } else if (!outputColumn.tag.equals(Tag.EVENT_TYPE)){ fields.add(new TmfEventField(outputColumn.name, (value != null ? value : ""), null)); } } setContent(new CustomEventContent(customEventContent.getName(), customEventContent.getValue(), fields.toArray(new ITmfEventField[0]))); fData = null; }

Target:
private void processData() { String timestampString = fData.get(Tag.TIMESTAMP); String timestampInputFormat = fData.get(Key.TIMESTAMP_INPUT_FORMAT); ITmfTimestamp timestamp = null; if (timestampInputFormat != null && timestampString != null) { TmfTimestampFormat timestampFormat = new TmfTimestampFormat(timestampInputFormat); try { long time = timestampFormat.parseValue(timestampString); timestamp = TmfTimestamp.fromNanos(getTrace().getTimestampTransform().transform(time)); setTimestamp(timestamp); } catch (ParseException e) { setTimestamp(TmfTimestamp.ZERO); } } else { setTimestamp(TmfTimestamp.ZERO); } String eventName = fData.get(Tag.EVENT_TYPE); ITmfEventType type = getType(); if (eventName != null && type instanceof CustomEventType) { ((CustomEventType) type).setName(eventName); } List<ITmfEventField> fields = new ArrayList<>(fDefinition.outputs.size()); for (OutputColumn outputColumn : fDefinition.outputs) { Object key = (outputColumn.tag.equals(Tag.OTHER) ? outputColumn.name : outputColumn.tag); if (outputColumn.tag.equals(Tag.TIMESTAMP) && timestamp != null) { TmfTimestampFormat timestampFormat = new TmfTimestampFormat(fDefinition.timeStampOutputFormat); fields.add(new TmfEventField(outputColumn.name, timestampFormat.format(timestamp.getValue()), null)); } else if (!outputColumn.tag.equals(Tag.EVENT_TYPE)){ fields.add(new TmfEventField(outputColumn.name, nullToEmptyString(fData.get(key)), null)); } } setContent(new CustomEventContent(customEventContent.getName(), customEventContent.getValue(), fields.toArray(new ITmfEventField[0]))); fData = null; }