sample code of how to use spring features