public void write(WriteContext context, Object obj) {
   if (Deploy.debug) {
     Debug.writeBegin(context, Const4.YAPSHORT);
   }
   int shortValue = ((Short) obj).shortValue();
   context.writeBytes(new byte[] {(byte) (shortValue >> 8), (byte) shortValue});
   if (Deploy.debug) {
     Debug.writeEnd(context);
   }
 }
 public Object read(ReadContext context) {
   if (Deploy.debug) {
     Debug.readBegin(context, Const4.YAPSHORT);
   }
   int value = ((context.readByte() & 0xff) << 8) + (context.readByte() & 0xff);
   if (Deploy.debug) {
     Debug.readEnd(context);
   }
   return new Short((short) value);
 }