Java snippets and proof of concepts