Added custom object mapper support (serialization).