diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/proxy/ResourceRegistryPublisherImpl.java b/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/proxy/ResourceRegistryPublisherImpl.java index e55aab5..ec88120 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/proxy/ResourceRegistryPublisherImpl.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/publisher/proxy/ResourceRegistryPublisherImpl.java @@ -279,7 +279,13 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher String res = result.toString(); logger.trace("Server returned content : {}", res); - return (C) ISMapper.unmarshal((Class) clazz, res); + if(Boolean.class.isAssignableFrom(clazz)){ + return (C) ((Boolean) Boolean.getBoolean(res)) ; + }else if(ISManageable.class.isAssignableFrom(clazz)){ + return (C) ISMapper.unmarshal((Class) clazz, res); + } + + return (C) res; } }