code: public Attribute export(JavaClass source, JavaClass target)
    {
      ConstantPool cp = target.getConstantPool();
  
      cp.addUTF8(getName());
      
      CodeAttribute attr = new CodeAttribute(getName());
  
      attr._maxStack = _maxStack;
      attr._maxLocals = _maxLocals;
  
      byte []code = new byte[_code.length];
      System.arraycopy(_code, 0, code, 0, _code.length);
      attr._code = code;
  
      for (int i = 0; i < _exceptions.size(); i++) {
        ExceptionItem exn = _exceptions.get(i);
  
        int type = exn.getType();
        
        if (type != 0)
          type = cp.addClass(source.getConstantPool().getClass(type).getName()).getIndex();
  
        ExceptionItem newExn = new ExceptionItem(type,
                                                 exn.getStart(),
                                                 exn.getEnd(),
                                                 exn.getHandler());
      
        attr._exceptions.add(newExn);
      }
  
      for (int i = 0; i < _attributes.size(); i++) {
        Attribute codeAttr = _attributes.get(i);
  
        attr.addAttribute(codeAttr.export(source, target));
      }
  
      try {
        attr.exportCode(source, target);
      } catch (Exception e) {
        throw new RuntimeException(e);
      }
  
      return attr;
    }
docs: Clones the attribute