class HermesAbstractApiListener extends HttpRequestAdaptor {

    public Long getOptionalLongFromInput(Map<String, Object> inputDict, String key, long defaultValue, Map<String, Object> error) {
        Long value = null;
        try {
            value = (Long) inputDict.get(key);
            if (value == null) {
                value = defaultValue;
            }
        } catch (Exception e) {
            String errorMessage = "Error parsing parameter: " + key;
            logError(errorMessage, e);
            fillError(error, ErrorCode.ERROR_PARSING_REQUEST, errorMessage);
        }
        return value;
    }

    public  HermesAbstractApiListener();

}