protected function getNestedContext($class, $attributes = null)
    {
        // Must be an array
        if (is_array($attributes) === false) return $attributes;

        // Create nested context
        $context = new $class($attributes);

        // Return context attributes
        return $this->filterNestedContext($context->getProperties());
    }