code: private IDomain createDomainIfNotExist(String domainId){
          IDomain foundDomain=findDomainByID(domainId);
          if(foundDomain==null){
              foundDomain=user.createDomain(domainName);
          }
          return foundDomain;
      }
docs: This method checks if the domain exists for the user. If the domain was not found,
  it will be created using the domainId.
  @param domainId The domainId which will be used for finding o creating the domain the
  user.
  @return a the found or created domain.