public static Scope fromString(String scope) {
    for (final Scope value : VALUES) {
      if (value.toString().equals(scope)) {
        return value;
      }
    }
    throw new IllegalArgumentException(
        String.format("%s is not a valid string representation of %s.",
            scope, Scope.class.getName()));
  }
Parse the given string into a Scope

@param scope the provided String form of Scope
@return the canonical Scope associated with the string
geode-core/src/main/java/org/apache/geode/cache/Scope.java