Understanding Beans - SPRING framework