Merge pull request #478 from ctrueden/fix-code-examples

Fix Java code examples
Merge pull request #484 from mtbc/warn-data-loss

put permissions warning into a proper warning box
merge dev_4_4 -D org -I include -E exclude: PR 480 (Script sample gh 470)