private User getUserByLogin(String userLogin) {
   for (int i = 0; i < mUserList.size(); i++) {
     final User user = mUserList.get(i);
     if (user.getUserLogin().equalsIgnoreCase(StringUtils.parseBareAddress(userLogin))) {
       return user;
     }
   }
   return null;
 }
 public User getUserByFullUserLogin(String fullUserLogin) {
   for (int i = 0; i < mUserList.size(); i++) {
     final User user = mUserList.get(i);
     if (user.getFullUserLogin().equalsIgnoreCase(fullUserLogin)) {
       return user;
     }
   }
   return null;
 }
  /**
   * Cancels all file transfers, sets all users as logged off, and removes them from the user list.
   */
  private void removeAllUsers() {
    final UserList userList = getUserList();

    for (int i = 0; i < userList.size(); i++) {
      final User user = userList.get(i);

      if (!user.isMe()) {
        user.setOnline(false);
        cancelFileTransfers(user);
        userList.remove(user);

        if (user.getPrivchat() != null) {
          msgController.showPrivateSystemMessage(user, "You logged off");
          user.getPrivchat().setLoggedOff();
        }

        i--;
      }
    }
  }
 @Override
 public Object getItem(int position) {
   return mList.get(position);
 }
 private User getUser(int position) {
   return mList.get(position);
 }