using factory method of XDI3Segment
updates applicationContext.xml