Added code for JAX-RS custom marshaling/unmarshaling