code: void writeBootstrapMethods() {
          int alenIdx = writeAttr(names.BootstrapMethods);
          databuf.appendChar(bootstrapMethods.size());
          for (Map.Entry<DynamicMethod, MethodHandle> entry : bootstrapMethods.entrySet()) {
              DynamicMethod dmeth = entry.getKey();
              DynamicMethodSymbol dsym = (DynamicMethodSymbol)dmeth.baseSymbol();
              //write BSM handle
              databuf.appendChar(pool.get(entry.getValue()));
              //write static args length
              databuf.appendChar(dsym.staticArgs.length);
              //write static args array
              Object[] uniqueArgs = dmeth.uniqueStaticArgs;
              for (Object o : uniqueArgs) {
                  databuf.appendChar(pool.get(o));
              }
          }
          endAttr(alenIdx);
      }
docs: Write "bootstrapMethods" attribute.