for example I have two classes A and B i have to get the property of B so I can set it to A how can you do this in the applicationContext