private function getBehaviorLocator()
    {
        if (null === $this->behaviorLocator) {
            $config = $this->getGeneratorConfig();
            if (null !== $config) {
                $this->behaviorLocator = $config->getBehaviorLocator();
                if (null === $this->behaviorLocator) {
                    $this->behaviorLocator = new BehaviorLocator();
                }
            } else {
                $this->behaviorLocator = new BehaviorLocator();
            }
        }

        return $this->behaviorLocator;
    }