code: public void addIndexes(StorableInfo<S> info, Direction defaultDirection) {
          for (int i=info.getIndexCount(); --i>=0; ) {
              add(info.getIndex(i).setDefaultDirection(defaultDirection));
          }
      }
docs: Adds all the indexes of the given storable.
  
  @param defaultDirection default ordering direction to apply to each
  index property
  @throws IllegalArgumentException if any argument is null