@fabpot this method will need to be adapted when merging 2.3 into 2.4 because of the XML namespace support. See https://github.com/symfony/symfony/pull/10935/files#diff-b21c94d886a3648c0f8a59ef30df1e8aR824 for the way the code should look like in 2.4 and master