public static Set<Role> checkForRequiredRoles(Region<?, ?> region) {
    try {
      return waitForRequiredRoles(region, 0);
    } catch (InterruptedException ie) {
      // This could happen if we were in an interrupted state
      // upon method entry
      Thread.currentThread().interrupt();
      ((InternalRegion) region).getCancelCriterion().checkCancelInProgress(ie);
      Assert.assertTrue(false, "checkForRequiredRoles cannot throw InterruptedException");
      return Collections.emptySet(); // keep compiler happy
    }
  }
Returns a set of any currently missing required roles for the specified region. If the region
is not configured to require roles an empty set will always be returned.

@param region the region to check for missing required roles
@return set of required roles that are currently missing
@throws IllegalStateException if region is not configured with required roles
geode-core/src/main/java/org/apache/geode/cache/RequiredRoles.java