try serializerByIdentity(serializerId) catch { case _: NoSuchElementException => null } match {
      case null =>
        Failure(new NotSerializableException(s"Cannot find serializer with id [$serializerId]. The most probable reason is that the configuration entry akka.actor.serializers is not in synch between the two systems.")
      case some => Try(some.fromBinary(bytes, clazz).asInstanceOf[T])
    }