If the format is not registered, you must throw an Exception.