protected StartParameter newInstance() {
return new StartParameter();
}
public StartParameter convert(ParsedCommandLine options, StartParameter startParameter) throws CommandLineArgumentException {
LoggingConfiguration loggingConfiguration = loggingConfigurationCommandLineConverter.convert(options);
startParameter.setLogLevel(loggingConfiguration.getLogLevel());
startParameter.setColorOutput(loggingConfiguration.isColorOutput());
FileResolver resolver = new BaseDirConverter(startParameter.getCurrentDir());
for (String keyValueExpression : options.option(SYSTEM_PROP).getValues()) {
String[] elements = keyValueExpression.split("=");
startParameter.getSystemPropertiesArgs().put(elements[0], elements.length == 1 ? "" : elements[1]);