public void newSetup(Class cls){
  try {
    Experiment exp=(Experiment)cls.newInstance();
    notifyTabsExperimentChanged(null,exp);
  }
 catch (  Exception e) {
    handleException(null,"Failed to instantiate experiment class: " + cls.getName(),e);
  }
}

public void newSetup ( Class cls ) { try { Experiment exp = ( Experiment ) cls . newInstance ( ) ; notifyTabsExperimentChanged ( null , exp ) ; } catch ( Exception e ) { handleException ( null , "Failed to instantiate experiment class: " + cls . getName ( ) , e ) ; } }
instantiates an experiment from the provided class .
