Description
When I run it GeneratorJob from command line, it parses batchId without any problem. However, if I run it using API (run method), then it gives exception. Problem is caused by fact, that batchId is parsed only in main method.
I would propose simple patch to fix this problem.