Support java-main arguments

Add support for command line arguments to the java-main container.

Improve the way java-main constructs the return value of release so
that extraneoous spaces are not added.

Document arguments configuration parameter and improve the layout of
the java-main documentation.

[#52116083]
Merge 52116083-java-main-args to master

[#52116083]