|
|
|
@ -9,6 +9,7 @@ import org.gcube.common.scope.impl.ScopeBean;
|
|
|
|
|
import org.gcube.context.ContextElaborator;
|
|
|
|
|
import org.gcube.informationsystem.context.impl.entities.ContextImpl;
|
|
|
|
|
import org.gcube.informationsystem.context.reference.entities.Context;
|
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.contexts.ContextCache;
|
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException;
|
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException;
|
|
|
|
|
import org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException;
|
|
|
|
@ -45,7 +46,7 @@ public class ContextCreator extends ContextElaborator {
|
|
|
|
|
try {
|
|
|
|
|
UUID uuid = contexts.get(scopeBean.toString());
|
|
|
|
|
if(uuid==null) {
|
|
|
|
|
uuid = ContextUtility.getInstance().getContextUUIDFromFullName(scopeBean.toString());
|
|
|
|
|
uuid = ContextCache.getInstance().getUUIDByFullName(scopeBean.toString());
|
|
|
|
|
if(uuid!=null) {
|
|
|
|
|
contexts.put(scopeBean.toString(), uuid);
|
|
|
|
|
}
|
|
|
|
|