Inner beans

either can use ref or create a local bean