protected void load(PropertiesConfiguration config) throws IOException, ConfigurationException {
            this.name = config.getString("name");
            this.collection = config.getString("collection");
            if (collection != null) collection = collection.trim();

            String urlPattern = config.getString("acceptableURLs");
            if (urlPattern != null) this.acceptableURLs = Pattern.compile(urlPattern.trim());

            String contentPattern = config.getString("acceptableContent");
            if (contentPattern != null) this.acceptableContent = Pattern.compile(contentPattern.trim());

            List<Pattern> patterns = new ArrayList<Pattern>();
            for (String p : config.getStringArray("patterns")) {
                patterns.add(Pattern.compile(p.trim(),
                        Pattern.CASE_INSENSITIVE | Pattern.MULTILINE | Pattern.DOTALL));
            }

            this.patterns = patterns.toArray(new Pattern[0]);
        }