Apparently some of that stuff is pretty widespread in the java library world. IIRC jackson (json library) and jersey (REST library) do bytecode manipulation voodoo under the covers. Not sure for what exactly, but I'd be it has something to do with annotations ...