protected function attachEntityContainer(EntityContainerInterface $entityContainer)
    {
        $this->getEntityContainerMap()->set($entityContainer->getName(), $entityContainer);

        // reset entity cached iterator
        $this->resetEntityIterator();
    }