code: protected final void create_new_stack_map_attribute(MethodGen mgen) throws IOException {
  
      if (!needStackMap) {
        return;
      }
      if (stack_map_table == empty_stack_map_table) {
        return;
      }
      print_stack_map_table("Final");
  
      // Build new StackMapTable attribute
      StackMap map_table =
          new StackMap(pool.addUtf8("StackMapTable"), 0, null, pool.getConstantPool());
      map_table.setStackMap(stack_map_table);
      mgen.addCodeAttribute(map_table);
    }
docs: Create a new StackMap code attribute from stack_map_table.
  
  @param mgen MethodGen to add attribute to
  @throws IOException if cannot create the attribute