docs: @Override
      public String getText() {
          if (event.isCharacters()) { // Handles CHARACTERS, CDATA, & SPACE
              return event.asCharacters().getData();
          } else if (event.getEventType() == XMLEvent.COMMENT) {
              return ((Comment) event).getText();
          } else {
              throw new IllegalStateException();
          }
      }