@throws ResourceClassNotSupportedException

@return object|null
770401
private function getSubresource(string $rootClass, array $rootResolvedFields, array $rootIdentifiers, string $rootProperty, string $subresourceClass, bool $isCollection, array $normalizationContext)
    {
        $identifiers = [];
        $resolvedIdentifiers = [];
        foreach ($rootIdentifiers as $rootIdentifier) {
            if (isset($rootResolvedFields[$rootIdentifier])) {
                $identifiers[$rootIdentifier] = $rootResolvedFields[$rootIdentifier];
            }

            $resolvedIdentifiers[] = [$rootIdentifier, $rootClass];
        }

        return $this->subresourceDataProvider->getSubresource($subresourceClass, $identifiers, $normalizationContext + [
            'property' => $rootProperty,
            'identifiers' => $resolvedIdentifiers,
            'collection' => $isCollection,
        ]);
    }
1207668
public static function getKernel()
    {
        if (!isset(self::$_instance)) {
            if ($cls = Kwf_Config::getValue('symfony.kernelClass')) {
                if (!class_exists('Symfony\Component\HttpKernel\Kernel')) return null;

                self::$_instance = new $cls();
                self::$_instance->boot(); //make sure it is booted (won't do it twice)
            } else {
                return null;
            }
        }
        return self::$_instance;
    }
1016566
final public static function getClassFile():\stdClass
    {
        $a = json_decode(file_get_contents(FEnv::get("framework.config.core.apps.file")));
        return ($a == null ? new \stdClass() : $a);
    }
85949
public function dataClass()
    {
        if ($this->dataClass) {
            return $this->dataClass;
        }
        if (count($this->items) > 0) {
            return get_class($this->items[0]);
        }
        return null;
    }
814748
protected Object available() throws ClassNotFoundException {
        Object result = null;
        if (getVar() != null) {
            Object value = pageContext.getAttribute(getVar(), getVarScope());
            if (value instanceof SlingBean) {
                Class<?> type = getComponentType();
                if (type != null && type.isAssignableFrom(value.getClass())) {
                    result = value;
                }
            }
        }
        return result;
    }
1344649
protected function getDisplayerClass()
    {
        $class = $this->wrappedObject->revisionable_type;

        do {
            if (class_exists($displayer = $this->generateDisplayerName($class))) {
                return $displayer;
            }
        } while ($class = get_parent_class($class));

        throw new Exception('No displayers could be found');
    }
816811
public function jsonSerialize() {
    $valid = (!isset($this->textColor) ||
        $this->validateTextColor($this->textColor)) &&
      (!isset($this->backgroundColor) ||
        $this->validateBackgroundColor($this->backgroundColor));
    if (!$valid) {
      return NULL;
    }
    return parent::jsonSerialize();
  }
1002505
public function getMetaClasses()
    {
        $returnValue = null;

        
        $returnValue = new core_kernel_classes_ContainerCollection(new core_kernel_classes_Container(__METHOD__),__METHOD__);
        
        $classClass = new core_kernel_classes_Class(OntologyRdfs::RDFS_CLASS);
        foreach($classClass->getSubClasses(true) as $uri => $subClass){
        	$returnValue->add($subClass);
        }
		

        return $returnValue;
    }
315824
public function resourceConfigurationFor($resourceName)
    {
        foreach ($this->resourceConfigurations as $config) {
            if ($config->getResource() === $resourceName) {
                return $config;
            }
        }

        return null;
    }
786497
public function getCurrentResourceDir()
    {
        $dir = $this->getResourceDir();

        if (0 === count($dir)) {
            throw new BBException(
                'Misconfiguration of the BBApplication : none resource dir defined',
                BBException::INVALID_ARGUMENT
            );
        }

        return array_shift($dir);
    }
805931
protected function handleResource(array $resources)
    {
        $found = array_by_key_value($resources, 'name', $this->resource);
        if (!isset($found, $found['class_name'])) {
            throw new NotFoundException("Resource '{$this->resource}' not found for service '{$this->name}'.");
        }

        $className = $found['class_name'];

        if (!class_exists($className)) {
            throw new InternalServerErrorException('Service configuration class name lookup failed for resource ' .
                $this->resourcePath);
        }

        /** @var ResourceInterface $resource */
        $resource = $this->instantiateResource($className, $found);

        $newPath = $this->resourceArray;
        array_shift($newPath);
        $newPath = implode('/', $newPath);

        return $resource->handleRequest($this->request, $newPath);
    }
84125
private void get_class_system_resource() {

        //
        // Try to retrieve the class resource doc_url
        //

        if (Util._UseDb) {
            try {

                //
                // Call db server
                //

                final DbDatum res_value = db_class.get_property("doc_url");

                if (res_value.is_empty() == true) {
                    Util.out4.println("doc_url property for class " + name
                            + " is not defined in database");
                    doc_url = Tango_DefaultDocUrl;
                } else {
                    doc_url = res_value.extractString();
                }
            } catch (final DevFailed ex) {
                doc_url = Tango_DefaultDocUrl;
            } catch (final BAD_OPERATION ex) {
                doc_url = Tango_DefaultDocUrl;
            }
        } else {
            doc_url = Tango_DefaultDocUrl;
        }
    }
17143
private function classGet()
    {
        return isset( $this->class )
            ? $this->class
            : (
                  ( $firstElement = $this->firstElementGet() )
                ? ( $this->class = get_class( $firstElement ) )
                : null
              )
            ;
    }
278530
public function getResource()
    {
        if ($this->getEvent() && $this->event->getTarget() instanceof ResourceInterface) {
            return $this->event->getTarget();
        }

        return null;
    }
1289571
protected function getResource()
    {
        if (empty($this->_resourceName) && empty($this->_resource)) {
            throw new LocalizedException(
                new Phrase('The resource isn\'t set.')
            );
        }

        return $this->_resource ?: ObjectManager::getInstance()->get($this->_resourceName);
    }
1001474
private function getResourceClass($item, ?string $resourceClass, ResolveInfo $info, string $errorMessage = 'Resolver only handles items of class %s but retrieved item is of class %s.'): ?string
    {
        if (null === $item) {
            return $resourceClass;
        }

        $itemClass = $this->getObjectClass($item);

        if (null === $resourceClass) {
            return $itemClass;
        }

        if ($resourceClass !== $itemClass) {
            throw Error::createLocatedError(sprintf($errorMessage, (new \ReflectionClass($resourceClass))->getShortName(), (new \ReflectionClass($itemClass))->getShortName()), $info->fieldNodes, $info->path);
        }

        return $resourceClass;
    }
387063
public function getOrFail($classOrPointer, $id=null)
    {
        if ($entity = $this->get($classOrPointer, $id)) {
            return $entity;
        }

        list($class, $id) = $this->toClassAndId($classOrPointer, $id);

        throw new ResourceNotFoundException("Entity $class:$id not found");
    }