public void setConfiguration(PluginConfig cfg) {
        String tmp;
        if ((tmp = cfg.getProperty("MUDColorizer", id, "regexpSet")) != null) {
            Properties regexpSet = new Properties();

            try {
                regexpSet.load(getClass().getResourceAsStream('/' + tmp));
            } catch (Exception e) {
                try {
                    regexpSet.load(new URL(tmp).openStream());
                } catch (Exception ue) {
                    error("cannot find regexpSet: " + tmp);
                    error("resource access failed: " + e);
                    error("URL access failed: " + ue);
                    regexpSet = null;
                }
            }

            if (regexpSet != null && !regexpSet.isEmpty()) {
                exps = new Object[regexpSet.size() * 2];
                Hashtable colors = new Hashtable();
                colors.put("BLACK", BLACK);
                colors.put("RED", RED);
                colors.put("BRED", BRED);
                colors.put("GREEN", GREEN);
                colors.put("BGREEN", BGREEN);
                colors.put("YELLOW", YELLOW);
                colors.put("BYELLOW", BYELLOW);
                colors.put("BLUE", BLUE);
                colors.put("BBLUE", BBLUE);
                colors.put("PINK", PINK);
                colors.put("BPINK", BPINK);
                colors.put("CYAN", CYAN);
                colors.put("BCYAN", BCYAN);
                colors.put("WHITE", WHITE);
                colors.put("BWHITE", BWHITE);
                colors.put("NORMAL", NORMAL);
                colors.put("BOLD", BOLD);

                Enumeration names = regexpSet.propertyNames();
                int ex = 0;
                while (names.hasMoreElements()) {
                    String exp = (String) names.nextElement();
                    RE re = null;
                    try {
                        re = new RE(exp);
                    } catch (Exception e) {
                        logger.log(Level.SEVERE, "Something wrong with regexp: " +
                                ex + "\t" + exp);
                        logger.log(Level.SEVERE, e.toString(), e);
                    }
                    exps[ex++] = re;
                    exps[ex++] = colors.get(regexpSet.get(exp));
                    System.out.println("MUDColorizer: loaded: " + exp + " with " + regexpSet.get(exp));
                }
            }
        }
    }