I\'m curious if i\'m missing a pattern which help me with the following case:
This piece of code eventually writes data from a database to an excelsheet using Apache