code: static public int compare(Name n1, Name n2) {
      int ret = n1.namespaceUri.compareTo(n2.namespaceUri);
      if (ret != 0)
        return ret;
      return n1.localName.compareTo(n2.localName);
    }
docs: We include this, but don't derive from Comparator<Name> to avoid a dependency on Java 5.