~~~ scala
Try {
  val deserializer = 
    try serializerByIdentity(serializerId)
    catch {
      case e: NoSuchElementException => throw new NotSerializableException(..., e)
    }
  deserializer.fromBinary(bytes, clazz)
}
~~~