/** * Stops all events which are being ran by the given owner * * @param owner */ public void stopEvents(Object owner) { for (CycleEventContainer c : events) { if (c.getOwner() == owner) { c.stop(); } } }