public function createNode($discriminator = 'default')
    {
        $reflection = new \ReflectionClass($this->getClassByDiscriminator($discriminator));

        $instance = $reflection->newInstance();
        if($instance instanceof NodeInterface)
        {
            return $instance;
        }

        return null;
    }