Add spring-security related codes.