class HermesAbstractApiListener extends HttpRequestAdaptor {

    public String getStringFromInput(Map<String, Object> inputDict, String key, Map<String, Object> error) {
        String value = null;
        try {
            value = (String) inputDict.get(key);
            if (value == null) {
                String errorMessage = "Missing required input field: " + key;
                logError(errorMessage);
                fillError(error, ErrorCode.ERROR_MISSING_REQUIRED_PARAMETER, errorMessage);
            }
        } catch (Exception e) {
            String errorMessage = "Error parsing parameter: " + key;
            logError(errorMessage, e);
            fillError(error, ErrorCode.ERROR_PARSING_REQUEST, errorMessage);
        }
        return value;
    }

    public  HermesAbstractApiListener();

}