public function toType($alias, TypeFactory $factory)
    {
        $typeRule = $this->findTypeRule($alias);
        $config = $typeRule['type'].'|'.$typeRule['rule'];

        return $factory->toType($config);
    }