docs: private boolean hasRoleMaster(String userId, String domain) {
  
          DomainRoleEntry domainRole = domainAccessStore.getDomainRole(userId, Role.MASTER);
          if (domainRole == null || !Arrays.asList(domainRole.getDomains()).contains(domain)) {
              return false;
          }
  
          return true;
      }