public static RequestParameter fromRequestName(String requestName) { if (ClientUtils.isNotBlank(requestName)) { for (final RequestParameter e : values()) { if (e.getRequestName().equals(requestName)) { return e; } } } return null; }
public static String getRequestName(RequestParameter requestParameter) { return ClientUtils.toLowerCase(requestParameter.name()); }