public function accept()
    {
        /* @var $serviceId string|object */
        $serviceId = $this->current();
        if (in_array($serviceId, $this->getIdsOfServicesThatAreDefinedInApplication())) {
            return true;
        }
        if ($this->startsWithPrefix($serviceId, $this->getPrefixesOfApplicationServices())) {
            return true;
        }
        return false;
    }