public function makeToolbarItem(array $parameters, FactoryInterface $factory = null) {
        if($factory === null) {
            $factory = $this->getDefaultToolbarItemFactory();
        }

        if(is_string($parameters['action'])) {
            $parameters['action'] = $this->getAction($parameters['action']);
        }

        $item = $factory->create($parameters);

        $this->addToolbarItem($item);

        return $item;
    }