Fixed bug introduced in refactoring

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-publisher@154908 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-10-05 12:38:09 +00:00
parent 956e0201de
commit 7c201359ea
1 changed files with 2 additions and 2 deletions

View File

@ -578,7 +578,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
try {
String isRelatedToString = ISMapper.marshal(isRelatedTo);
String isRelatedToType = Utility.getType(isRelatedTo);
String res = createConsistsOf(isRelatedToType, isRelatedToString);
String res = createIsRelatedTo(isRelatedToType, isRelatedToString);
return (I) ISMapper.unmarshal(IsRelatedTo.class, res);
} catch (ResourceRegistryException e) {
// logger.trace("Error Creating {}", isRelatedTo, e);
@ -593,7 +593,7 @@ public class ResourceRegistryPublisherImpl implements ResourceRegistryPublisher
public String createIsRelatedTo(String isRelatedTo) throws ResourceNotFoundException, ResourceRegistryException {
try {
String isRelatedToType = Utility.getClassFromJsonString(isRelatedTo);
return createConsistsOf(isRelatedToType, isRelatedTo);
return createIsRelatedTo(isRelatedToType, isRelatedTo);
} catch (ResourceRegistryException e) {
// logger.trace("Error Creating {}", isRelatedTo, e);
throw e;