# my compiler doesn't believe, that XMLStreamWriter implements AutoCloseable. (but i know,how change, if it really implements..)
# add one variant, how we can change switch