public UserDetail getUserDetailsByUserName(String userName, HttpServletRequest request) throws Exception {
IUserDetails userDetails = (IUserDetails) ServiceFinder.getContext(request).getBean("UserDetailsHibernateDao");
try {
return userDetails.getUserDetailByUserName(userName);
}catch (Exception ex){
throw new EmployeeException(ex);
}
};