diff --git a/src/main/java/org/gcube/informationsystem/icproxy/resources/ServiceEndpointResource.java b/src/main/java/org/gcube/informationsystem/icproxy/resources/ServiceEndpointResource.java index 7559923..c817dc3 100644 --- a/src/main/java/org/gcube/informationsystem/icproxy/resources/ServiceEndpointResource.java +++ b/src/main/java/org/gcube/informationsystem/icproxy/resources/ServiceEndpointResource.java @@ -92,8 +92,7 @@ public class ServiceEndpointResource { if (Objects.nonNull(resourceProfile) && isRoleEnabled()){ ServiceEndpoint newResource= new ServiceEndpoint(); ServiceEndpoint.Profile profile=newResource.newProfile().category(resourceProfile.getCategory()).name(resourceProfile.getName()); - ServiceEndpoint.Platform platform=profile.newPlatform().name(resourceProfile.getPlatform()); - platform.version(resourceProfile.getPlatformVersion()); + ServiceEndpoint. platform=profile.newPlatform().name(resourceProfile.getPlatform()).version(resourceProfile.getPlatformVersion()); ServiceEndpoint.AccessPoint ap=new ServiceEndpoint.AccessPoint(); ap.name(resourceProfile.getAccessPointName()); ap.address(resourceProfile.getAccessPointAddress());