OMNode curr = nav.next();
// Inspect elements that have been visited.
// It is probably safer to inspect the node when it is visited, because
// this guarantees that its children have been processed/expanded.
if (nav.visited() && curr instanceof OMElement) {
OMElement element = (OMElement)curr;
if (element.getQName().equals(XOP_INCLUDE)) {
if (log.isDebugEnabled()) {
log.debug("[XOP_INCLUDE] " + element.getLocalName());
}