#10: correct java config, injection by calling method