code: private byte[] replaceAsmInstructions(final byte[] classFile, final boolean hasFrames) {
      Attribute[] attributes = getAttributePrototypes();
      firstField = null;
      lastField = null;
      firstMethod = null;
      lastMethod = null;
      firstAttribute = null;
      compute = hasFrames ? MethodWriter.COMPUTE_INSERTED_FRAMES : MethodWriter.COMPUTE_NOTHING;
      return toByteArray();
    }
docs: Returns the equivalent of the given class file, with the ASM specific instructions replaced
  with standard ones. This is done with a ClassReader -&gt; ClassWriter round trip.
  
  @param classFile a class file containing ASM specific instructions, generated by this
  ClassWriter.
  @param hasFrames whether there is at least one stack map frames in 'classFile'.
  @return an equivalent of 'classFile', with the ASM specific instructions replaced with standard
  ones.