public Map<String, Object> getConfiguration() {
        @SuppressWarnings("unchecked")
		Map<String, Object> config = (HashMap<String, Object>) servletContext.getAttribute(Constants.CONFIG);

        // so unit tests don't puke when nothing's been set
        if (config == null) {
            return new HashMap<String, Object>();
        }

        return config;
    }