Added ability to use java configuration for batch jobs