Adding Java samples of how to inser documents