public static Properties processArgs(String args[]) {

        Properties startupArgs = new Properties();
        if (args == null) return startupArgs;

        String _name = null;
        String _value = null;

        for (int i = 0; i < args.length; i++) {
            //Get Name or Value
            if (args[i].startsWith("-")) {
                if (_name != null) {
                    _value = "true";
                    i--;
                } else {
                    //Strip off '-'
                    _name = args[i].substring(1);
                    if (i == args.length - 1) _value = "true";
                }
            } else if (_name != null) {
                _value = args[i];
            } else {
                //Must be a Boolean Arg
                _value = "true";
            }

            //Place them in the Map
            if (_name != null && _value != null) {
                startupArgs.put(_name, _value);
                _name = null;
                _value = null;
            }
        }

        return startupArgs;
    }