WFLY-3940 Parsers should print expected elements in case of error

copy/paste of the code few methods lower...