@SuppressWarnings("unchecked")
private CommandLineParser populate(UIWizard root, UIWizard current, String line, boolean lenient) throws Exception
{
addWizardStep(current);
Map<String, InputComponent<?, Object>> inputs = getInputs();
CommandLineParser parser = commandLineUtil.generateParser(root, inputs);
CommandLine cmdLine = parser.parse(line, lenient, lenient);
commandLineUtil.populateUIInputs(cmdLine, inputs);
List<String> errors = validate();
if (errors.isEmpty())
{
NavigationResult next = current.next(getContext());