diff --git a/src/org/gcube/vremanagement/vremodeler/portallayout/GenericResourcePortlet.java b/src/org/gcube/vremanagement/vremodeler/portallayout/GenericResourcePortlet.java index ef5b7af..1cf3a83 100644 --- a/src/org/gcube/vremanagement/vremodeler/portallayout/GenericResourcePortlet.java +++ b/src/org/gcube/vremanagement/vremodeler/portallayout/GenericResourcePortlet.java @@ -33,7 +33,8 @@ public class GenericResourcePortlet { resource.setDescription("List of selectable Portlet for the VRE "+vreName); resource.setName("AvailablePortlets"); resource.setSecondaryType("PortletLayoutResource"); - + resource.addScope(GCUBEScope.getScope(ServiceContext.getContext().getScope()+"/"+vreName)); + ISPublisher publisher = GHNContext.getImplementation(ISPublisher.class); publisher.registerGCUBEResource(resource,GCUBEScope.getScope(ServiceContext.getContext().getScope()+"/"+vreName) , ServiceContext.getContext()); }