extract initialization to java configuration of main seedproject