public function applyData($name, $handler = null)
    {
        if (is_callable($name)) {
            $handler = $name;
            $name    = null;
        }

        $handler($this->getRepository($name), $this->getData());

        return $this;
    }