in Java code example fix variable name for consistency

addressing https://github.com/openmicroscopy/ome-documentation/pull/487/files#r6554856

cc: @ctrueden