void (String command, boolean waitForScenario, String... parameters) { String line = escapeCommand(command, parameters); if (currentScenario == null && waitForScenario) { queue.add(line); } else { printLine(line); } }