added how to user legacy functions in a sf2 controller

I am not sure it is the best way to do it but it works for me.