title: Creating a JMS Serializer handler in symfony2
body: <p>I tried to follow the related documentation, here:<br>
  <a href="http://jmsyst.com/libs/serializer/master/configuration" rel="noreferrer">http://jmsyst.com/libs/serializer/master/configuration</a><br>
  here<br>
  <a href="http://jmsyst.com/libs/serializer/master/handlers" rel="noreferrer">http://jmsyst.com/libs/serializer/master/handlers</a><br>
  and here<br>
  <a href="http://jmsyst.com/bundles/JMSSerializerBundle/master/cookbook/custom_handlers" rel="noreferrer">http://jmsyst.com/bundles/JMSSerializerBundle/master/cookbook/custom_handlers</a></p>
  
  <p>I'm stuck when trying to get the builder object in symfony2 (see second link for this object). The service is a serializer which has already been build. Where should i instanciate my own handler?</p>
  
  <p>Update:<br>
  I'm investigating one possible solution:<br>
  <code>$builder = \JMS\Serializer\SerializerBuilder::create();</code><br>
  or<br>
  <code>$builder = new \JMS\Serializer\SerializerBuilder();</code><br>
  maybe this will work but it would be nice to let the already instanciated serializer make use of my handler. To get the serializer service in the controller: <code>$serializer = $this-&gt;get('jms.serializer');</code></p>