- CdmStore.getService(IClassificationService.class).merge(getEntity());
-
- CdmApplicationState.getCurrentDataChangeService()
- .fireChangeEvent(new CdmChangeEvent(Action.Create, classification, NewTaxonNodeWizard.class), true);
+ if(CdmStore.getCurrentSessionManager().isRemoting()) {
+ CdmStore.getService(IClassificationService.class).merge(getEntity(), true);
+ CdmApplicationState.getCurrentDataChangeService()
+ .fireChangeEvent(new CdmChangeEvent(Action.Create, classification, NewTaxonNodeWizard.class), true);
+ } else {
+ CdmStore.getService(IClassificationService.class).save(getEntity());
+ }