Spring 5 removes ref XML attribute in favor of bean XML attribute. This commit updates all the samples and tests to use bean instead of ref. Issue gh-4080
Fixes gh-3752