Optional work of API StAX for Java