Add dependency with jms serializer and define Metadata entity serializer