refactored parsers parseStateNode method, refs#13