Support for auto-resume in batch processing after OutOfMemoryError