text: public int doLogic() throws Exception {if (maxNumSegments == -1) {throw new IllegalStateException("required argument (maxNumSegments) was not specified");}IndexWriter iw = getRunData().getIndexWriter();iw.forceMerge(maxNumSegments);return 1;}