There is no reason for whole container injection, you should just try to inject security context.