Rewrote GanymedeXMLSession.getNextErrChunk() to be more readable and to include an optimization after parsing is complete.