updated for packaging structure.Removed session object and added the
spring model.