@@ -0,0 +1,1405 @@
+package org.lemurproject.galago.core.util;%0A%0Aimport org.lemurproject.galago.core.retrieval.iterator.BaseIterator;%0Aimport org.lemurproject.galago.core.retrieval.traversal.Traversal;%0Aimport org.lemurproject.galago.utility.Parameters;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * @author jfoley.%0A */%0Apublic class IterUtils %7B%0A  /**%0A   * Adds an operator into a Retrieval's parameters for usage.%0A   * @param p the parameters object%0A   * @param name the name of the operator, e.g. %22combine%22 for #combine%0A   * @param iterClass the operator to register%0A   */%0A  public static void addToParameters(Parameters p, String name, Class%3C? extends BaseIterator%3E iterClass) %7B%0A    if(!p.containsKey(%22operators%22)) %7B%0A      p.put(%22operators%22, Parameters.create());%0A    %7D%0A    p.getMap(%22operators%22).put(name, iterClass.getName());%0A  %7D%0A%0A  /**%0A   * Adds a traversal into a Retrieval's parameters for usage.%0A   * @param argp the parameters object%0A   * @param traversalClass the traversal to register%0A   */%0A  public static void addToParameters(Parameters argp, Class%3C? extends Traversal%3E traversalClass) %7B%0A    List%3CParameters%3E traversals = argp.getList(%22traversals%22, Parameters.class);%0A    if(traversals == null) %7B%0A      traversals = new ArrayList%3C%3E();%0A    %7D%0A    traversals.add(Parameters.parseArray(%0A      %22name%22, traversalClass.getName(),%0A      %22order%22, %22before%22%0A    ));%0A    argp.put(%22traversals%22, traversals);%0A  %7D%0A%7D%0A

Add my IterUtils class to Galago itself.