class RequestParameter extends Parameter<String> {

    public <E extends Enum<E>> E toEnum(Class<E> type) {
        String value = toString();
        try {
            return Enum.valueOf(type, value.toUpperCase());
        } catch (Exception e) {
            throw new InvalidRequestParameterException(getName(), value);
        }
    }

    public  RequestParameter(String name, String value);

}