Source:
<code>protected void eventHandle(ITmfEvent event) { ITmfStateSystemBuilder ss = checkNotNull(getStateSystemBuilder()); int quark; final long ts = event.getTimestamp().normalize(0, ITmfTimestamp.NANOSECOND_SCALE).getValue(); final String eventName = event.getName(); try { if (event instanceof ITmfLostEvent) { ITmfLostEvent le = (ITmfLostEvent) event; quark = ss.getQuarkAbsoluteAndAdd(Attributes.EVENT_TYPES, eventName); int curVal = ss.queryOngoingState(quark).unboxInt(); if (curVal == -1) { curVal = 0; } ITmfStateValue value = TmfStateValue.newValueInt((int) (curVal + le.getNbLostEvents())); ss.modifyAttribute(ts, value, quark); long <START> startTime = <END> le.getTimeRange().getStartTime().normalize(0, ITmfTimestamp.NANOSECOND_SCALE).getValue(); long endTime = le.getTimeRange().getEndTime().normalize(0, ITmfTimestamp.NANOSECOND_SCALE).getValue(); int lostEventsQuark = ss.getQuarkAbsoluteAndAdd(Attributes.LOST_EVENTS); value = ss.queryOngoingState(lostEventsQuark); if (value.isNull() || value.unboxLong() < startTime) { ss.modifyAttribute(startTime, TmfStateValue.newValueLong(endTime), lostEventsQuark); } else if (value.unboxLong() < endTime) { ss.updateOngoingState(TmfStateValue.newValueLong(endTime), lostEventsQuark); } return; } quark = ss.getQuarkAbsoluteAndAdd(Attributes.EVENT_TYPES, eventName); ss.incrementAttribute(ts, quark); } catch (StateValueTypeException | TimeRangeException | AttributeNotFoundException e) { e.printStackTrace(); } }</code><technical_language>newStartTime? I a bit confused reading this code of variable names</technical_language>

Target:
protected void eventHandle(ITmfEvent event) { ITmfStateSystemBuilder ss = checkNotNull(getStateSystemBuilder()); int quark; final long ts = event.getTimestamp().normalize(0, ITmfTimestamp.NANOSECOND_SCALE).getValue(); final String eventName = event.getName(); try { if (event instanceof ITmfLostEvent) { ITmfLostEvent le = (ITmfLostEvent) event; quark = ss.getQuarkAbsoluteAndAdd(Attributes.EVENT_TYPES, eventName); int curVal = ss.queryOngoingState(quark).unboxInt(); if (curVal == -1) { curVal = 0; } ITmfStateValue value1 = TmfStateValue.newValueInt((int) (curVal + le.getNbLostEvents())); ss.modifyAttribute(ts, value1, quark); long lostEventsStartTime = le.getTimeRange().getStartTime().normalize(0, ITmfTimestamp.NANOSECOND_SCALE).getValue(); long lostEventsEndTime = le.getTimeRange().getEndTime().normalize(0, ITmfTimestamp.NANOSECOND_SCALE).getValue(); int lostEventsQuark = ss.getQuarkAbsoluteAndAdd(Attributes.LOST_EVENTS); ITmfStateValue currentLostEventsEndTime = ss.queryOngoingState(lostEventsQuark); if (currentLostEventsEndTime.isNull() || currentLostEventsEndTime.unboxLong() < lostEventsStartTime) { ss.modifyAttribute(lostEventsStartTime, TmfStateValue.newValueLong(lostEventsEndTime), lostEventsQuark); } else if (currentLostEventsEndTime.unboxLong() < lostEventsEndTime) { ss.updateOngoingState(TmfStateValue.newValueLong(lostEventsEndTime), lostEventsQuark); } return; } quark = ss.getQuarkAbsoluteAndAdd(Attributes.EVENT_TYPES, eventName); ss.incrementAttribute(ts, quark); } catch (StateValueTypeException | TimeRangeException | AttributeNotFoundException e) { e.printStackTrace(); } }