@Provides
@Singleton
public ObjectMapper getObjectMapper(Injector injector) {
ObjectMapper mapper = new ObjectMapper();
SimpleModule module =
new SimpleModule("MySerializer", new Version(1, 0, 0, null));
module.addSerializer(SimpleEvaluationObject.class, injector.getInstance(SimpleEvaluationObject.Serializer.class));
module.addSerializer(EvaluationResult.class, injector.getInstance(EvaluationResult.Serializer.class));
module.addSerializer(TableDisplay.class, injector.getInstance(TableDisplay.Serializer.class));
module.addSerializer(OutputContainer.class, injector.getInstance(OutputContainer.Serializer.class));
module.addSerializer(StringObject.class, injector.getInstance(StringObject.Serializer.class));
module.addSerializer(Color.class, injector.getInstance(ColorSerializer.class));
module.addSerializer(XYChart.class, injector.getInstance(XYChartSerializer.class));
module.addSerializer(CombinedPlot.class, injector.getInstance(CombinedPlotSerializer.class));
module.addSerializer(Line.class, injector.getInstance(LineSerializer.class));
module.addSerializer(Points.class, injector.getInstance(PointsSerializer.class));
module.addSerializer(Bars.class, injector.getInstance(BarsSerializer.class));
module.addSerializer(Stems.class, injector.getInstance(StemsSerializer.class));
module.addSerializer(Area.class, injector.getInstance(AreaSerializer.class));
module.addSerializer(YAxis.class, injector.getInstance(YAxisSerializer.class));
module.addSerializer(Crosshair.class, injector.getInstance(CrosshairSerializer.class));
mapper.registerModule(module);
SerializationConfig config = mapper.getSerializationConfig();