Hi Thomas,
Have you implemented this code change in your environment? How has it been running? Can you share the code on how you setup the batch job if you have one setup -- just the construction and call of the CostSheetFactory object and method?
Thank you.