protected static void writeHeader(final ManagementProtocolHeader header, final OutputStream os)
     throws IOException {
   final FlushableDataOutput output = ProtocolUtils.wrapAsDataOutput(os);
   header.write(output);
   output.flush();
 }