while (iter.hasNext())
{
Timeout timeout = (Timeout)iter.next();
timeout.cancel();
if (needRemove) {
if (timeout instanceof TimeoutExt) {
TimeoutExt te = (TimeoutExt)timeout;
DeliverRefTimeoutTarget target = (DeliverRefTimeoutTarget)te.getTimeoutTarget();