start to refactor the code by using spring security with java4openid