public function beforeSpecification(SpecificationEvent $event)
    {
        if ($event->getSpecification()->getClassReflection()->hasMethod('setLaravel')) {
            $this->laravel->refreshApplication();
        }
    }