2558 - Replacing code snippets in the Java templates docs