@ NotNull public static < T > T deserialize ( @ NotNull final DeserializerRegistry registry , @ NotNull final SerializedData data ) { Contract . requireArgNotNull ( "registry" , registry ) ; Contract . requireArgNotNull ( "data" , data ) ; final Deserializer deserializer = registry . getDeserializer ( data . getType ( ) , data . getMimeType ( ) ) ; return deserializer . unmarshal ( data . getRaw ( ) , data . getType ( ) , data . getMimeType ( ) ) ; }
Tries to find a deserializer for the given data block .