diff --git a/src/main/java/org/gcube/data/access/storagehub/handlers/ClassHandler.java b/src/main/java/org/gcube/data/access/storagehub/handlers/ClassHandler.java index 21e83d2..66d1d89 100644 --- a/src/main/java/org/gcube/data/access/storagehub/handlers/ClassHandler.java +++ b/src/main/java/org/gcube/data/access/storagehub/handlers/ClassHandler.java @@ -7,6 +7,7 @@ import java.util.Map; import java.util.Set; import org.gcube.common.storagehub.model.annotations.RootNode; +import org.gcube.common.storagehub.model.items.Item; import org.gcube.common.storagehub.model.items.RootItem; import org.reflections.Reflections; import org.slf4j.Logger; @@ -51,7 +52,7 @@ public class ClassHandler { public Class get(String nodeType){ if (classMap.containsKey(nodeType)) return classMap.get(nodeType); - if (deprecatedNode.contains(nodeType)) return RootItem.class; + if (deprecatedNode.contains(nodeType)) return Item.class; return null; //throw new RuntimeException("mapping not found for nodetype "+ nodeType); }