GUIUtils.timeConsumingTaskEnd(csmart);
  private void saveToDatabase() {    if (configComponent instanceof SocietyComponent) {      final PropertyBuilder propertyBuilder = this;      GUIUtils.timeConsumingTaskStart(this);      GUIUtils.timeConsumingTaskStart(csmart);      try {        new Thread("SaveSociety") {	    public void run() {	      boolean success = ((SocietyComponent)configComponent).saveToDatabase();	      GUIUtils.timeConsumingTaskEnd(propertyBuilder);	      GUIUtils.timeConsumingTaskEnd(csmart);	      if (!success && propertyBuilder.log.isWarnEnabled()) {		propertyBuilder.log.warn("Failed to save society " + configComponent.getShortName());	      } else if (propertyBuilder.log.isDebugEnabled()) {		propertyBuilder.log.debug("Saved society " + configComponent.getShortName());	      }	    }	  }.start();      } catch (RuntimeException re) {        if(log.isErrorEnabled()) {          log.error("Runtime exception saving society", re);        }        GUIUtils.timeConsumingTaskEnd(propertyBuilder);        GUIUtils.timeConsumingTaskEnd(csmart);      }    } else if (configComponent instanceof RecipeComponent) {      ((RecipeComponent)configComponent).saveToDatabase();    }  }