code: public IndexDef getIndex(String name)
      {
          String   realName = (name == null ? "" : name);
          IndexDef def      = null;
  
          for (Iterator it = getIndices(); it.hasNext();)
          {
              def = (IndexDef)it.next();
              if (def.getName().equals(realName))
              {
                  return def;
              }
          }
          return null;
      }
docs: Returns the index of the given name.
  
  @param name The name of the index (null or empty string for the default index)
  @return The index def or <code>null</code> if it does not exist