Migration to spring 4