Object-to-XML and object-to-JSON mapping using JAXB and EclipseLink MOXy.