Patch java cookbook for AWS. A few template changes.