public function __construct($handlers = array(), $upstream = null)
{
$this->_handlers = array();
$this->_upstream = $upstream;
foreach ($handlers as $event => $handler) {
$this->_handlers[$event] = is_array($handler) ? $handler : array($handler);
}
}