Why not move code from setupCSVLoader into a static method on CSVPartitionProcessor? Avoids this weird transfer of state.