// Serialized UserGroupInformation to say who we are.
// We're not nice so we're not gonna say who we are and we'll just send
// `null' (hadoop.io.ObjectWritable$NullInstance).
// First, we need the size of the whole damn UserGroupInformation thing.
// We skip 4 bytes now and will set it to the actual size at the end.
header.writerIndex(header.writerIndex() + 4); // 4
// 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";