code: private void defineWriteBridgeMethod()
      {
          classDefinition.addMethod(
                  new MethodDefinition(a(PUBLIC, BRIDGE, SYNTHETIC), "write", null, arg("struct", Object.class), arg("protocol", TProtocol.class))
                          .addException(Exception.class)
                          .loadThis()
                          .loadVariable("struct", structType)
                          .loadVariable("protocol")
                          .invokeVirtual(
                                  codecType,
                                  "write",
                                  type(void.class),
                                  structType,
                                  type(TProtocol.class)
                          )
                          .ret()
          );
      }
docs: Defines the generics bridge method with untyped args to the type specific write method.