fix #5759 remove all switches for remoting and standalone
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / newWizard / NewInstitutionWizard.java
index 6ac2d44407d5d86204df615c1bf8493c72aef7f4..a03cafa04279642add2887a416e0400385536e74 100644 (file)
@@ -35,11 +35,7 @@ public class NewInstitutionWizard extends AbstractNewEntityWizard<Institution> {
         */
        @Override
        protected void saveEntity() {
-           if(CdmStore.getCurrentSessionManager().isRemoting()) {
-               CdmStore.getService(IAgentService.class).merge(getEntity(), true);
-           } else {
-               CdmStore.getService(IAgentService.class).save(getEntity());
-           }
+           CdmStore.getService(IAgentService.class).merge(getEntity(), true);
        }
 
        /* (non-Javadoc)