added a note about methods that should be synchronized with the code in TwigBundle