private function setMimeType(FileMimeType $aMimeType)
    {
        if (!in_array($aMimeType->mimeType(), $this->availableMimeTypes(), true)) {
            throw new FileMimeTypeDoesNotSupportException();
        }
        $this->mimeType = $aMimeType;
    }