if (cc instanceof Experiment) cc = ((Experiment)cc).getSocietyComponent();
if (cc instanceof Experiment) {    Experiment experiment = (Experiment)cc; ComponentData cdata = experiment.getSocietyComponentData(); cc = new SocietyCDataComponent(cdata); cc.initProperties(); }
  public void runBuilder(ModifiableComponent cc,                          boolean alwaysNew) {    // note that cc is guaranteed non-null when this is called    Class[] paramClasses = { CSMART.class, ModifiableComponent.class };    Object[] params = new Object[2];    params[0] = this;    if (cc instanceof Experiment)      cc = ((Experiment)cc).getSocietyComponent();    params[1] = cc;    createTool(CONFIGURATION_BUILDER, PropertyBuilder.class, 	       alwaysNew, cc.getShortName(), (ModifiableComponent)cc,	       paramClasses, params);  }