Constrained jms-serializer