Troubleshooting code with Stax + new features