Working with static instances and material injections