System.out.println("invalid structured field sub command " + bk.getByteOffset(-1));
log.debug("invalid structured field sub command " + bk.getByteOffset(-1));
   private void writeStructuredField() {      boolean done = false;      int nextone;      try {         int length = (( bk.getNextByte() & 0xff )<< 8 | (bk.getNextByte() & 0xff));         while (bk.hasNext() && !done) {            switch (bk.getNextByte()) {               case -39:     // SOH - Start of Header Order                  switch (bk.getNextByte()) {                     case 112:      // 5250 Query                        bk.getNextByte(); // get null required field                        sendQueryResponse();                        break;                     default:                        System.out.println("invalid structured field sub command " + bk.getByteOffset(-1));                        break;                  }                  break;               default:                  System.out.println("invalid structured field command " + bk.getByteOffset(-1));                  break;            }         }      }      catch (Exception e) {};   }