core/src/main/java/com/digitalpebble/stormcrawler/util/ConfUtils.java
public static Map extractConfigElement(Map conf) {
        if (conf.size() == 1) {
            Object confNode = conf.get("config");
            if (confNode != null && confNode instanceof Map) {
                conf = (Map) confNode;
            }
        }
        return conf;
    }
public static Map extractConfigElement(Map conf) {
        if (conf.size() == 1) {
            Object confNode = conf.get("config");
            if (confNode != null && confNode instanceof Map) {
                conf = (Map) confNode;
            }
        }
        return conf;
    }
public static Map extractConfigElement ( Map conf ) { if ( conf . size ( ) == 1 ) { Object confNode = conf . get ( "config" ) ; if ( confNode != null && confNode instanceof Map ) { conf = ( Map ) confNode ; } } return conf ; }
If the config consists of a single key 'config', its values are used
instead
If the config consists of a single key config its values are used instead