public function getValueMappedToTemplate()
    {
        if ($this->submitted) {
            return $this->submittedValue;
        }

        if ($this->mapper) {
            return $this->mapper->mapToFrom($this->getValue());
        }

        return $this->getValue();
    }