ModifiableComponent societyCopy = new SocietyFileComponent(name, filenames);
ModifiableComponent societyCopy;
  public ModifiableComponent copy(String name) {    ModifiableComponent societyCopy =       new SocietyFileComponent(name, filenames);    //societyCopy.initProperties();    for(int i=0; i < this.getChildCount(); i++) {      societyCopy.addChild(this.getChild(i));    }    return societyCopy;  }