for(int i=0; i < this.getChildCount(); i++) { societyCopy.addChild(this.getChild(i)); }
if (filenames != null) societyCopy = new SocietyFileComponent(name, filenames); else societyCopy = new SocietyFileComponent(singleFilename, name);  societyCopy.initProperties();    ((SocietyBase)societyCopy).setAssemblyId(getAssemblyId());  ((SocietyBase)societyCopy).saveToDatabase();
  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;  }