BATCH-2035: Coded a working equivalent to simple-cli using pure java con...

...figuration.

While working on this pure java coded solution, I uncovered some bugs in the CommandLineRunner. This patch has fixes to that as well. You can see that sample-cli still runs correctly as does all its unit tests. I also verified that the unit tests in sample-cli-javaconfig also pass.