log.logCritical("Config is not correctly set in context.");
log.logCritical("Config is not correctly set in context");
    private Properties getConfig() {        /* Read configuration from context. */        final Properties config;        try {            config = (Properties) getServletContext().getAttribute(RequestUtil.PROP_CONFIG);        } catch (ClassCastException e) {            log.logCritical("Config is not correctly set in context.");            throw new IllegalStateException();            }        // Has the configuration been set at all?        if (config == null) {            log.logCritical("Configuration is not set in context");            throw new IllegalStateException();        }        // Are we missing some required properties?        for (int i = 0; i < REQUIRED_PARAMETERS.length; i++) {            String parvalue = config.getProperty(REQUIRED_PARAMETERS[i]);            if ((parvalue == null) || (parvalue.equals(""))) {                	log.logCritical("Required parameter '" + REQUIRED_PARAMETERS[i] + "' is not set");                    throw new IllegalStateException();            }        }        return config;    }