- name = CdmStore.getActiveCdmSource().getName();
- schemaVersion = CdmStore.getActiveCdmSource().getDbSchemaVersion();
- server = CdmStore.getActiveCdmSource().getServer();
+ name = activeCdmSource.getName();
+ schemaVersion = activeCdmSource.getDbSchemaVersion();
+ server = activeCdmSource.getServer();
+ if(activeCdmSource instanceof CdmRemoteSource){
+ contextPath = ((CdmRemoteSource) activeCdmSource).getContextPath();
+ if (contextPath != null && contextPath.startsWith("cdmserver/")){
+ contextPath = contextPath.substring("cdmserver/".length());
+ }
+ }