In the olden days, we wrote Java code, and then we wired it together with a super-nested web of XML.
Then someone invented XDoclet, which begot annotations, and we moved it all right into the code, and everything started making more sense.
In the hip new world, we write Java code, and then we wire it together with a super-nested web of YAML.
I hope someone invents YDoclet and we can move it all back into the code once again. That would make me happy.