Temporally implementing ApplicationContextAware to resolve springs object mapper.