protected void initParameters() {
super.initParameters();
this.numberOfPubs = Integer.parseInt(getParameterAsString("number-of-pubs"));
Publication[] pubs = new Publication[this.numberOfPubs];
for(int i = 0;i < pubs.length;i++) {
pubs[i] = new Publication();
pubs[i].id = getParameterAsString("pub"+i+"-id");
pubs[i].name = getParameterAsString("pub"+i+"-name");
pubs[i].indexDir = getParameterAsString("pub"+i+"-index-dir");
pubs[i].searchFields = getParameterAsString("pub"+i+"-search-fields");
pubs[i].excerptDir = getParameterAsString("pub"+i+"-excerpt-dir");