protected function buildKeyProvider(ObjectType $type)
    {
        $keyClass = $type->class;

        return function () use ($keyClass, &$type) {
            $root = new $keyClass();
            $config = $root->xTypeConfig();
            return $this->parseConfig($config);

        };
    }