preparation for JMSSerialize & FOSRest Bundles