/**
* {@inheritDoc}
*/
protected RelyingPartyDO resourceToObject(Resource resource) {
RelyingPartyDO rp = null;
if (resource != null) {
rp = new RelyingPartyDO();
String path = resource.getPath();
int index = path.lastIndexOf("/");
String uuid = path.substring(index);
String hostName = resource.getProperty(IdentityRegistryResources.PROP_HOST_NAME);
String alias = resource.getProperty(IdentityRegistryResources.PROP_ALIAS);
rp.setUuid(uuid);
rp.setHostName(hostName);
rp.setHostName(alias);
}
return rp;
}