// Write the class name of the object.
// See hadoop.io.ObjectWritable#writeObject
// See hadoop.io.UTF8#writeString
// String length as a short followed by UTF-8 string.
String klass = "org.apache.hadoop.io.Writable";
header.writeShort(klass.length()); // 2
header.writeBytes(Bytes.ISO88591(klass)); // 29
klass = "org.apache.hadoop.io.ObjectWritable$NullInstance";
header.writeShort(klass.length()); // 2
header.writeBytes(Bytes.ISO88591(klass)); // 48
klass = "org.apache.hadoop.security.UserGroupInformation";