docs: private void setNsid() throws FlickrException {
  
          if (username != null && !username.equals("")) {
              Auth auth = null;
              if (authStore != null) {
                  auth = authStore.retrieve(username); // assuming FileAuthStore is enhanced else need to
                  // keep in user-level files.
  
                  if (auth != null) {
                      nsid = auth.getUser().getId();
                  }
              }
              if (auth != null)
                  return;
  
              Auth[] allAuths = authStore.retrieveAll();
              for (int i = 0; i < allAuths.length; i++) {
                  if (username.equals(allAuths[i].getUser().getUsername())) {
                      nsid = allAuths[i].getUser().getId();
                      return;
                  }
              }
  
              // For this to work: REST.java or PeopleInterface needs to change to pass apiKey
              // as the parameter to the call which is not authenticated.
  
              // Get nsid using flickr.people.findByUsername
              PeopleInterface peopleInterf = flickr.getPeopleInterface();
              User u = peopleInterf.findByUsername(username);
              if (u != null) {
                  nsid = u.getId();
              }
          }
      }