public static ExpirationAction fromXmlString(String xmlValue) {
    switch (xmlValue) {
      case "invalidate":
        return INVALIDATE;
      case "destroy":
        return DESTROY;
      case "local-destroy":
        return LOCAL_DESTROY;
      case "local-invalidate":
        return LOCAL_INVALIDATE;
      default:
        throw new IllegalArgumentException("invalid expiration action: " + xmlValue);
    }
  }
converts allowed values in cache.xml into ExpirationAction

@param xmlValue the values allowed are: invalidate, destroy, local-invalidate, local-destroy
@return the corresponding ExpirationAction
@throws IllegalArgumentException for all other invalid strings.
geode-core/src/main/java/org/apache/geode/cache/ExpirationAction.java