Issue#360: README.md code sample confusion

Updated the sample code to upload the containerPermissions. Also added
java and xml formatting.