code: @SuppressWarnings("deprecation")
      public static ByteBuf writeShortBE(ByteBuf buf, int shortValue) {
          return buf.order() == ByteOrder.BIG_ENDIAN? buf.writeShort(shortValue) : buf.writeShortLE(shortValue);
      }
docs: Writes a big-endian 16-bit short integer to the buffer.