Use static type with objectmapper serialization