/** Handles the string chunks collected in {@link #characters}. */ private void handleCharacters() throws SAXException { final String text = characters.toString(); characters.setLength(0); if (text.length() == 0) { return; } XSIElementHandler peek = null; try { if ((text != null) && !"".equals(text.trim())) { peek = (XSIElementHandler) handlers.peek(); peek.characters(text); } } catch (SAXException e) { logger.warning(e.toString()); throw e; } }