Backport of Batch API subsystem to EAP6