Map<String, String> parms = parseArgsIntoMap(args);
String username = getRequiredParameter(PARAMETER_USERNAME, parms);
String password = getRequiredParameter(PARAMETER_PASSWORD, parms);
URL serverUrl = getRequiredUrlParameter(PARAMETER_SERVER_URL, parms);
serviceInfo = new ServiceInfo(serverUrl, username, password);
String query = getOptionalParameter(PARAMETER_QUERY, parms);
String terms = getOptionalParameter(PARAMETER_TERMS, parms);
String pidfileParm = getOptionalParameter(PARAMETER_PIDFILE, parms);