Would it be good to move this to the main(String[] args) method? That method initializes the context (such as also the global configuration)