Using Spring,Hibernate,Apache Shiro