docs: @Sensitive
      byte[] transformWithProbes(Class<?> clazz, @Sensitive byte[] classfileBuffer) {
          Set<ProbeListener> listeners = probeManagerImpl.getInterestedByClass(clazz);
          if (listeners.isEmpty()) {
              return null;
          }
  
          // reader --> serial version uid adder --> process candidate hook adapter --> tracing --> writer
          ClassReader reader = new ClassReader(classfileBuffer);
  
          int majorVersion = reader.readShort(6);
          int writerFlags = majorVersion >= V1_6 ? ClassWriter.COMPUTE_FRAMES : ClassWriter.COMPUTE_MAXS;
          ClassWriter writer = new RedefineClassWriter(clazz, reader, writerFlags);
  
          ClassVisitor visitor = writer;
          //Below Commented IF statement is causing change in StackSize of class resulting in exception when trace is enabled.Temporarily commenting out
          //will investigate further what is causing the below statement to change the stack size.
  //        if (tc.isDumpEnabled()) {
  //            visitor = new CheckClassAdapter(visitor);
  //        }
          ProbeInjectionClassAdapter probeAdapter = new ProbeInjectionClassAdapter(visitor, probeManagerImpl, clazz);
          visitor = probeAdapter;
  
          // Process the class
          int readerFlags = majorVersion >= V1_6 ? ClassReader.EXPAND_FRAMES : ClassReader.SKIP_FRAMES;
          reader.accept(visitor, readerFlags);
  
          if (probeAdapter.isModifiedClass()) {
              if (tc.isDumpEnabled()) {
                  StringWriter stringWriter = new StringWriter();
                  stringWriter.write("=== Original Code ===\n");
                  dumpClass(stringWriter, classfileBuffer);
                  stringWriter.write("\n");
                  stringWriter.write("=== Modified Code ===\n");
                  dumpClass(stringWriter, writer.toByteArray());
                  Tr.dump(tc, "Bytecode", stringWriter);
              }
              return writer.toByteArray();
          }
          return null;
      }