package org.gcube.smartgears.handler.resourceregistry; import java.util.UUID; import org.gcube.informationsystem.resourceregistry.api.contexts.ContextCache; import org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @author Luca Frosini (ISTI-CNR) */ public class ContextUtility { private static Logger logger = LoggerFactory.getLogger(ContextUtility.class); public static UUID getContextUUID(String contextFullName) throws ResourceRegistryException { ContextCache contextCache = ContextCache.getInstance(); UUID contextUUID = contextCache.getUUIDByFullName(contextFullName); return contextUUID; } }