Added Spring 3.0 compatibility

I added Spring 3.0 compatibility similar to how the compatibility is implemented in the social-core library. Could you please review these code changes?