public static void main(final String args[]) throws Exception {
// loads the original class and adapts it
ClassReader cr = new ClassReader("CommentAttribute");
ClassWriter cw = new ClassWriter(0);
ClassVisitor cv = new AddCommentClassAdapter(cw);
cr.accept(cv, new Attribute[] { new CommentAttribute("") }, 0);
byte[] b = cw.toByteArray();
// stores the adapted class on disk
FileOutputStream fos = new FileOutputStream("CommentAttribute.class.new");
try {