ref #8011 Adapt to cdmlib change of Pair to MapEntry
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / newWizard / NewCollectionWizard.java
index 8efc02f8cfa1f4db1f0fad5c2ea5e4b80353e2b3..697705e2f54d4108ac0c477fb6e8f20d21bb22d8 100644 (file)
@@ -1,4 +1,3 @@
-// $Id$
 /**
 * Copyright (C) 2007 EDIT
 * European Distributed Institute of Taxonomy
@@ -36,11 +35,8 @@ public class NewCollectionWizard extends AbstractNewEntityWizard<Collection> {
        /** {@inheritDoc} */
        @Override
        protected void saveEntity() {
-           if(CdmStore.getCurrentSessionManager().isRemoting()) {
-               CdmStore.getService(ICollectionService.class).merge(getEntity(), true);
-           } else {
-               CdmStore.getService(ICollectionService.class).save(getEntity());
-           }
+           CdmStore.getService(ICollectionService.class).merge(getEntity(), true);
+           
        }
 
        /* (non-Javadoc)