diff --git a/pom.xml b/pom.xml
index 5e6d8c1..e65f9c6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -131,18 +131,6 @@
common-smartgears
provided
-
-
-
-
-
-
-
- org.glassfish.jersey.test-framework.providers
- jersey-test-framework-provider-grizzly2
- ${version.jersey}
- test
-
de.grundid.opendatalab
geojson-jackson
@@ -158,6 +146,12 @@
commons-lang
2.3
+
+ org.glassfish.jersey.test-framework.providers
+ jersey-test-framework-provider-grizzly2
+ ${version.jersey}
+ test
+
diff --git a/src/main/java/org/gcube/datacatalogue/catalogue/utils/GcoreEndpointReaderSNL.java b/src/main/java/org/gcube/datacatalogue/catalogue/utils/GcoreEndpointReaderSNL.java
index f02fb64..4763926 100644
--- a/src/main/java/org/gcube/datacatalogue/catalogue/utils/GcoreEndpointReaderSNL.java
+++ b/src/main/java/org/gcube/datacatalogue/catalogue/utils/GcoreEndpointReaderSNL.java
@@ -39,10 +39,10 @@ public class GcoreEndpointReaderSNL {
try{
SimpleQuery query = queryFor(GCoreEndpoint.class);
- query.addCondition(String.format("$RESOURCE/Profile/SERVICE_CLASSE/text() eq '%s'",SERVICE_CLASSE));
- query.addCondition("$RESOURCE/Profile/DeploymentData/Status/text() eq 'ready'");
- query.addCondition(String.format("$RESOURCE/Profile/SERVICE_NAME/text() eq '%s'",SERVICE_NAME));
- query.setResult("$RESOURCE/Profile/AccessPoint/RunningInstanceInterfaces//Endpoint[@EntryName/string() eq \""+RESOURCE+"\"]/text()");
+ query.addCondition(String.format("$resource/Profile/ServiceClass/text() eq '%s'",SERVICE_CLASSE));
+ query.addCondition("$resource/Profile/DeploymentData/Status/text() eq 'ready'");
+ query.addCondition(String.format("$resource/Profile/ServiceName/text() eq '%s'",SERVICE_NAME));
+ query.setResult("$resource/Profile/AccessPoint/RunningInstanceInterfaces//Endpoint[@EntryName/string() eq \""+RESOURCE+"\"]/text()");
DiscoveryClient client = client();
List endpoints = client.submit(query);