Some java code for blog samples and stackoverflow references.