code: public Account getAccountForInputText(String inputText) {
          if ( selectedProfile != null ) return selectedProfile;
          Account account = pwmProfiles.findAccountByUrl(inputText);
          if ( account == null ) return getDefaultAccount();
          return account;
      }
docs: Public for testing