public <T> T parse(XMLEventReader reader, ElementParser<T> elementParser) throws XMLStreamException {
		ignoreContentBeforeFirstStartTag(reader);
		T object = elementParser.parse(reader);
		while (reader.hasNext())
			reader.nextEvent();
		return object;
	}