class ScriptExecutionAdderImpl implements ScriptExecutionAdder {

    @Override
    public void commit() {
        final ScriptExecutionCommand command = new ScriptExecutionCommand(scriptName, arguments, authenticate);

        if (!records.isEmpty()) {
            for (final Entry<String, Record> entry : records.entrySet()) {
                command.addWithReplace(entry.getKey(), entry.getValue());
            }
        }

        queue.addInCclSessionCommand(command);
    }

    public  ScriptExecutionAdderImpl(final String scriptName, final CommandQueue queue);

}