@Override
 public User findUserByUsername(String username) {
   if (!StringUtils.hasText(username)) {
     return null;
   }
   return userDao.findByUsername(username);
 }
 @Override
 public User findUserById(String id) {
   if (!StringUtils.hasText(id)) {
     return null;
   }
   return userDao.findOne(id);
 }
 @Override
 public Long countAllUsers() {
   return userDao.count();
 }
 @Override
 public Page<User> findAllUsers(Pageable pageable) {
   return userDao.findAll(pageable);
 }
 @Override
 public void delete(User m) {
   userDao.delete(m);
 }
 @Override
 public void save(User m) {
   userDao.save(m);
 }