'Cucumber: custom serializer instead GherkinSerializer

I using Cucumber and need to customize some methods of GherkinSerializer that is by default.

Is there is way to set by default my custom Serializer instead of GherkinSerializer for Cucumber?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source