Accept the given domainId instead of using domain name
Fixes an issue when a gateway is created with an id
that is different than the gateway name, as can happen
because the id is a sanitized version
of the gateway name.
@@ -62,7 +62,6 @@ public class SharingRegistryServerHandler implements SharingRegistryService.Ifac
@Override
public String createDomain(Domain domain) throws SharingRegistryException, DuplicateEntryException, TException {
try{
- domain.setDomainId(domain.getName());
if((new DomainRepository()).get(domain.getDomainId()) != null)
throw new DuplicateEntryException("There exist domain with given domain id");
