public final void execute(@NotNull List<FinalizableCommand> commandList,@NotNull Condition expired){
synchronized (myLock) {
    final boolean isBusy=myCommandCount > 0;
    final CommandGroup commandGroup=new CommandGroup(commandList,expired);
    myCommandGroupList.add(commandGroup);
    myCommandCount+=commandList.size();
    if (!isBusy) {
      run();
    }
  }
}

public final void execute ( @ NotNull List < FinalizableCommand > commandList , @ NotNull Condition expired ) { synchronized ( myLock ) { final boolean isBusy = myCommandCount > 0 ; final CommandGroup commandGroup = new CommandGroup ( commandList , expired ) ; myCommandGroupList . add ( commandGroup ) ; myCommandCount += commandList . size ( ) ; if ( ! isBusy ) { run ( ) ; } } }
executes passed batch of commands . note , that the processor surround the commands with blockfocuseventscmd - unbockfocuseventscmd . it ' s required to prevent focus handling of events which is caused by the commands to be executed .
