protected function getScope() {
        if ($this->annotation->getScope() instanceof AbstractResourceFile) {
            return $this->annotation->getScope();
        } else {
            throw new \Chigi\Chiji\Exception\InvalidConfigException("Invalid Annotation interface resource.");
        }
    }