http://jira.springframework.org/browse/BATCH-673 Fixed a couple of small implementation bugs, and cleaned up a bit.