fix NPE due to missing injections by aligning spring configurations.