public static void writeUuid(BinaryRawWriter out,UUID uid){
  if (uid != null) {
    out.writeBoolean(true);
    out.writeLong(uid.getMostSignificantBits());
    out.writeLong(uid.getLeastSignificantBits());
  }
 else   out.writeBoolean(false);
}

public static void writeUuid ( BinaryRawWriter out , UUID uid ) { if ( uid != null ) { out . writeBoolean ( true ) ; out . writeLong ( uid . getMostSignificantBits ( ) ) ; out . writeLong ( uid . getLeastSignificantBits ( ) ) ; } else out . writeBoolean ( false ) ; }
writes uuid to binary writer .
