#5010 : Initial commit to fix duplicate entry issue when creating new key node
[taxeditor.git] / eu.etaxonomy.taxeditor.cdmlib / src / main / java / eu / etaxonomy / cdm / api / application / CdmApplicationState.java
index cf47b3cfce64fce2bf7da00713e2f6b4bbbac9e3..551f5fafeacc229697741a4fc6c8058368b8f89f 100644 (file)
@@ -16,6 +16,7 @@ import java.lang.reflect.Type;
 import eu.etaxonomy.cdm.api.service.ICommonService;
 import eu.etaxonomy.cdm.api.service.IService;
 import eu.etaxonomy.cdm.api.service.ITestService;
+import eu.etaxonomy.taxeditor.service.ICachedCommonService;
 
 /**
  * @author cmathew
@@ -135,4 +136,11 @@ public class CdmApplicationState {
 
     }
 
+    public static ICachedCommonService getCachedCommonService() {
+        ICdmApplicationConfiguration configuration = getCurrentAppConfig();
+
+        return ((CdmApplicationRemoteController)configuration).getCachedCommonService();
+
+    }
+
 }