Class[] paramClasses = { CSMART.class, Experiment.class }; Object[] params = new Object[2]; params[0] = this; params[1] = runningExperiment; createTool(SOCIETY_MONITOR, CSMARTUL.class, name, null, paramClasses, params);
JFrame tool = (JFrame)new CSMARTUL(this, runningExperiment); addTool(SOCIETY_MONITOR, name, tool);
  protected void runMonitor() {    Experiment runningExperiment = null;    String name = "";    if (runningExperiments.size() > 0) {      runningExperiment = (Experiment)runningExperiments.get(0);      name = runningExperiment.getExperimentName();    }    Class[] paramClasses = { CSMART.class, Experiment.class };    Object[] params = new Object[2];    params[0] = this;    params[1] = runningExperiment;    createTool(SOCIETY_MONITOR, CSMARTUL.class, name, null,               paramClasses, params);  }