* another nodeset with matches
* @return a nodeset containing all matches from the head which are directly followed by matches in the tail
*/
private NodeProxy getContinuousMatches(final NodeProxy head, final NodeProxy tail) {
// NodeSet result = new ExtArrayNodeSet();
Match continuousMatch = null;
Match headMatch = head.getMatches();
while (headMatch != null && continuousMatch == null) {
Match tailMatch = tail.getMatches();
while (tailMatch != null && continuousMatch == null) {
continuousMatch = headMatch.continuedBy(tailMatch);
tailMatch = tailMatch.getNextMatch();
}
headMatch = headMatch.getNextMatch();
}
if (continuousMatch != null) {
NodeProxies.filterMatches(tail, new F<Match, Boolean>() {