if (i + 1 >= nl.getLength()) {
resultBuilder.add(parseMetadataNodeList(revId, nlEntries, ImmutableList.<Revision>of()));
} else {
String parentId = nl.item(i + 1).getAttributes().getNamedItem("revision").getNodeValue();
resultBuilder.add(parseMetadataNodeList(revId, nlEntries,
ImmutableList.of(new Revision(parentId, name))));
}
}
return resultBuilder.build();
} catch (Exception e) {
throw new MoeProblem("Could not parse xml log: " + log + e.getMessage());