VersionedRecordConverter converter;
boolean receivedFirstMessage;
public void onMessage(MessageEvent.Message message) {
if (!receivedFirstMessage) {
receivedFirstMessage = true;
dataInstance.onTimelineProfilerStarted();
}
EventRecordMessage eventRecordMessage = message.cast();
if (!getVersion().equals(eventRecordMessage.getVersion())) {
if (converter == null) {
converter = VersionedRecordConverter.create(eventRecordMessage.getVersion());