public function buildRef(ItemReferenceInterface $item,array $config) {
        $mask = $config['mask'];
        $className = $config['className'];
        $field = $config['field'];
        $qb = $this->sequenceGenerator->createQueryBuilder();
        $qb->from($className,'p');
        return $this->sequenceGenerator->generateNext($qb, $mask,$field,[],$config);
    }