Sharing DOMAIN has DOMAIN_ID that is the same as GATEWAY_ID
Not sure why the DOMAIN_ID was getting overwritten with the domain name.
@@ -51,7 +51,6 @@ public class SharingRegistryServerHandler implements SharingRegistryService.Ifac
@Override
public String createDomain(Domain domain) throws SharingRegistryException, DuplicateEntryException, TException {
try{
- domain.setDomainId(domain.name);
if((new DomainRepository()).get(domain.domainId) != null)
throw new DuplicateEntryException("There exist domain with given domain id");
