* @return a linkInfo object
* @throws XMLStreamException
*/
private LinkInfo collectLinkInfo(List<XMLEvent> events) throws XMLStreamException {
Navigator linkInfoNavigator = new InSubtreeNavigator(LINK_INFO_EL);
Navigator linkInfoPartNavigator = new FindStartElementNavigator(LINK_PART_INFO_EL);
LinkInfo linkInfo = null;
while (this.getParent().hasNext()) {
XMLEvent event = this.getParent().peek();
if (linkInfoNavigator.fulfillsCriteria(event)) {
event = this.getParent().nextEvent();
if (linkInfoPartNavigator.fulfillsCriteria(event)) {
if (linkInfo == null) {
throw new ProcessingException(new NullPointerException(
"The LinkInfo object mustn't be null here."));
}