public void parseSurroundingEndElement() {
		try {
			if (xmlReader.hasNext()
					&& xmlReader.getEventType() == XMLStreamConstants.END_ELEMENT) {
				xmlReader.next();
				while (xmlReader.hasNext()
						&& xmlReader.getEventType() == XMLStreamConstants.CHARACTERS) {
					if (!xmlReader.isWhiteSpace()) {
						throw new IllegalStateException(
								"illegal xml end element"); // illegal xml file
					}
					xmlReader.next();
				}
				return;
			}
		} catch (XMLStreamException e) {
			throw new IllegalStateException(e);			
		}
	}