diff --git a/pom.xml b/pom.xml index 9ba3b14..451404f 100644 --- a/pom.xml +++ b/pom.xml @@ -35,7 +35,7 @@ org.gcube.distribution gcube-bom - 2.4.1 + 2.4.1-SNAPSHOT pom import diff --git a/src/main/java/org/gcube/common/storagehub/client/dsl/Util.java b/src/main/java/org/gcube/common/storagehub/client/dsl/Util.java index 23b5a17..3047c71 100644 --- a/src/main/java/org/gcube/common/storagehub/client/dsl/Util.java +++ b/src/main/java/org/gcube/common/storagehub/client/dsl/Util.java @@ -14,6 +14,9 @@ public class Util { return new FolderContainer(itemClient, (FolderItem)item); else return new GenericItemContainer(itemClient, item); } - + + public static String getVREGroupFromContext(String context) { + return context.replace("/", "-").substring(1); + } }