How to choose a bean scope