private function isInWhitelist($serviceName)
    {
        foreach ($this->whiteList as $pattern) {
            if (!preg_match($pattern, $serviceName)) {
                return false;
            }
        }

        return true;
    }