helper methods for dealing with domainIds