public static void setGlobalHook(Hook hook) {
    globalHook = hook;
  }
Must be called before any serialization takes place (e.g. in some static/service init)!
Not thread safe.

This is somewhat brittle because there's no way to add proper superclass hook in Kryo.
On the other hand, it doesn't suffer from the mismatch problems that register() causes!
ql/src/java/org/apache/hadoop/hive/ql/exec/SerializationUtilities.java