docs: public static AuthInfo getUserAuthInfo(Config config, Context context) {
      AuthInfo authInfo = null;
      if (config != null && context != null) {
        String user = context.getUser();
        if (user != null) {
          List<NamedAuthInfo> users = config.getUsers();
          if (users != null) {
            for (NamedAuthInfo namedAuthInfo : users) {
              if (user.equals(namedAuthInfo.getName())) {
                authInfo = namedAuthInfo.getUser();
              }
            }
          }
        }
      }
      return authInfo;
    }