public void setParams(Map<String, String> global) throws Exception {
        String timeoutValue = global.get("http-timeout-ms");
        if (timeoutValue != null) {
            try {
                timeout = Integer.parseInt(timeoutValue);
            }
            catch (Exception e) {
                Logger.getLogger(getClass()).error("Cannot parse http-timeout-ms value " + timeoutValue, e);
                
            }
        }
    }