Make client to be compitable with spring 2.x