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); }