private void parseArgs(String[] args) {
        if (args != null && args.length > 0) {
            for (String arg : args) {
                if (arg.startsWith("-") && arg.lastIndexOf("=") != -1) { // -config="server.config"
                    arg = arg.substring(1, arg.length());
                    String[] keyValuePair = arg.split("=");
                    if (keyValuePair.length == 2) {
                        log("adding arg to map, key: '" + keyValuePair[0] + "' value: '" + keyValuePair[1] + "'");
                        argMap.put(keyValuePair[0], keyValuePair[1]);
                    } else {
                        log("arg contains multiple '=', arg: " + arg);
                    }
                } else {
                    log("arg does not starts with '-' and does not contains '=',  arg: " + arg);
                }
            }
        } else {
            log("no args, using defaults");
        }
    }