anchor.diff:      // This generics version works fine with Resin, but fails with Tomcat 5.5
       // with java.lang.AbstractMethodError
       //    at java.util.Arrays.mergeSort(Arrays.java:1284)
  -    //    at java.util.Arrays.sort(Arrays.java:1223) 
  +    //    at java.util.Arrays.sort(Arrays.java:1223)
       Arrays.sort(arr, new Comparator<List<Tok>>() {
         public int compare(List<Tok> toks, List<Tok> toks1) {
           return toks.get(0).pos - toks1.get(0).pos;
  
positive.code: 
      );
  
     out.println("    <tokens>");
     for (int i = 0; i < arr.length; i++) {
       for (Tok tok : arr[i]) {
         out.print("      <token");
         out.print(" type=\"" + tok.token.type() + "\"");
         out.print(" pos=\"" + tok.pos + "\"");
         out.print(" start=\"" + tok.token.startOffset() + "\"");
         out.print(" end=\"" + tok.token.endOffset() + "\"");
         out.print(">");
         out.print(tok.token.termText());
         out.println("      </token>");
       }
     }
     out.println("    </tokens>");
     out.println("  </factory>");
    }
  
  %>
  
negative.code:     Token token;
      int pos;
      Tok(Token token, int pos) {
        this.token=token;
        this.pos=pos;
      }
  
      public boolean equals(Object o) {
  