* Note that by contract, GenericName shall contain at least 1 element. This assumption
* appears in two places: it.next() invoked once before any it.hasNext(), and testing for
* locals[index-1] element (so we assume index > 0).
*/
final Iterator<? extends LocalName> it = parsedTail.iterator();
LocalName name = it.next();
final LocalName lastName = locals[index-1];
final NameSpace lastScope = lastName.scope();
final NameSpace tailScope = name.scope();
if (tailScope instanceof DefaultNameSpace && ((DefaultNameSpace) tailScope).parent == lastScope) {
/*
* If the tail is actually the tip (a LocalName), remember the tail so we
* don't need to create it again later. Then copy the tail after the path.