@Singleton
@Provides
static EventDataConverterManager provideEventDataConverterManager() {
// v0.1 till v0.21 use the same event data converter.
NavigableMap<ProtocolVersion, EventDataConverter> converters = Maps.newTreeMap();
EventDataConverterV21 eventDataConverterV21 = new EventDataConverterV21();
converters.put(ProtocolVersion.V1, eventDataConverterV21);
converters.put(ProtocolVersion.V2, eventDataConverterV21);
converters.put(ProtocolVersion.V2_1, eventDataConverterV21);
converters.put(ProtocolVersion.V2_2, new EventDataConverterV22());
return new EventDataConverterManager(converters);