From ba7ac1e1050898bcca19979e07869e87be8a4fe0 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Fri, 17 Sep 2021 11:45:49 +0200 Subject: [PATCH] Fixed code due to APIs changes in service --- .../resourceregistry/contexts/ContextCreator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/contexts/ContextCreator.java b/src/main/java/org/gcube/informationsystem/resourceregistry/contexts/ContextCreator.java index aa20d6f..d4035be 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/contexts/ContextCreator.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/contexts/ContextCreator.java @@ -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); }