public static NatServiceType fromString(final String natServiceTypeName) {
    for (final NatServiceType mode : NatServiceType.values()) {
      if (mode.getValue().equalsIgnoreCase(natServiceTypeName)) {
        return mode;
      }
    }
    throw new IllegalStateException(
        String.format("Invalid NAT service type provided: %s", natServiceTypeName));
  }
Parses and returns corresponding enum value to the passed method name. This method throws an
{@link IllegalStateException} if the method name is invalid.

@param natServiceTypeName The name of the NAT service type.
@return The corresponding {@link NatServiceType}
nat/src/main/java/org/hyperledger/besu/nat/core/domain/NatServiceType.java