public function getContext($name)
    {
        /** @var \AppserverIo\Appserver\Core\Api\Node\ContextNode $context */
        foreach ($this->getContexts() as $context) {
            if ($context->getName() === $name) {
                return $context;
            }
        }
    }
public function getContext($name)
    {
        /** @var \AppserverIo\Appserver\Core\Api\Node\ContextNode $context */
        foreach ($this->getContexts() as $context) {
            if ($context->getName() === $name) {
                return $context;
            }
        }
    }
public function getContext ( $ name ) { /** @var \AppserverIo\Appserver\Core\Api\Node\ContextNode $context */ foreach ( $ this -> getContexts ( ) as $ context ) { if ( $ context -> getName ( ) === $ name ) { return $ context ; } } }
Returns the context with the passed name.

@param string $name The name of the requested context

@return \AppserverIo\Appserver\Core\Api\Node\ContextNode|null The requested context node
Returns the context with the passed name .