Implement batches as bean objects