RestMimeType changed from enum to class.