PlaybackCommand (@NotNull String _command, int line, @NotNull File scriptDir) { String command = _command.replaceAll("[\r\n]+$", ""); String[] cmdline = command.split("\\s+"); PlaybackCommand playbackCommand = null; if (cmdline.length > 0) { String commandName = cmdline[0]; CreateCommand createCommand = CommandProvider.findCommandCreator(commandName); if (createCommand != null) { playbackCommand = createCommand.invoke(command, line); if (playbackCommand instanceof AbstractCommand) { ((AbstractCommand)playbackCommand).setScriptDir(scriptDir); } } } if (playbackCommand == null) { playbackCommand = super.createCommand(command, line, scriptDir); } return playbackCommand; }