/**
  * Removes the custom event with the specified condition from the event queue.
  *
  * @param condition is the condition of the custom event to remove.
  */
 public void removeCustomEvent(Condition condition) {
   customEvents.remove(condition);
 }