@Override
 public UserDetails loadUserByUsername(String username) {
   try {
     return getUser(username);
   } catch (UserNotFoundException e) {
     throw new UsernameNotFoundException(e.getMessage());
   }
 }
  @Override
  public List<User> getUserSublist(List<String> nameList) {

    List<User> userList = new ArrayList<User>();

    for (String name : nameList) {
      try {
        userList.add(getUser(name));
      } catch (UserNotFoundException e) {
        e.printStackTrace();
      }
    }

    return userList;
  }