code: protected Pair<Integer, FlatBufferBuilder> encodeStaticHeader(byte type) {
          FlatBufferBuilder fbb = new FlatBufferBuilder(12);
  
          int staticInfoOffset = UIStaticInfoRecord.createUIStaticInfoRecord(fbb, type);
          fbb.finish(staticInfoOffset);
          int lengthHeader = fbb.offset();       //MUST be called post finish to get real length
          return new Pair<>(lengthHeader, fbb);
      }
docs: Encode the header as a UIStaticInfoRecord instance for the specific {@link UIEventType}
  @param type UIEventType