code: public Response execute(Command command) throws IOException {
          for (EventListener temp : listeners) {
              temp.beforeEvent(command);
          }
          Response res = commandExecutor.execute(command);
  
          for (EventListener temp : listeners) {
              temp.afterEvent(command);
          }
  
          return res;
      }
docs: /*
  (non-Javadoc)
  
  @see org.openqa.selenium.remote.CommandExecutor#execute(org.openqa.selenium.remote.Command)