public function formatData()
    {
        $this->formatter->addData($this->data);

        try {
            $formatted = $this->formatter->format();
        } catch (DataException $e) {
            throw new FormattingException('The provided data has been incorrectly formatted.');
        }

        return $formatted;
    }