public UserDetails loadUserByUsername(String username)
throws UsernameNotFoundException, DataAccessException {
SecurityService service = ServiceLocator.instance().getSecurityService();
UserDetailsVO userDetailsVO = service.getUserDetails(username);
if (userDetailsVO == null) {
throw new UsernameNotFoundException("User " + username + " not found");
}
return new UserDetailsImpl(userDetailsVO);
}