protected function respondeToFeatures(XMLEvent $event, $data)
{
if ($event->isEndTag()) {
/* @var $element \DOMElement */
$element = $event->getParameter(0);
// bind element occured in <features>
if ('features' === $element->parentNode->localName) {
$this->blocking = true;
$this->getConnection()->send(sprintf($data, $this->getId(), $this->getOptions()->getResource()));
}
}
}