ensured compatibility with jms/serializer >=v0.14