code: static String saveGetLocation(WebDriver driver) {
          logger.entering(driver);
          String location = "n/a";
          try {
              if (driver != null) {
                  location = driver.getCurrentUrl();
              }
          } catch (Exception exception) {
              logger.log(Level.FINER, "Current location couldn't be retrieved by getCurrentUrl(). This can be SAFELY "
                      + "IGNORED if testing a non-web mobile application. Reason: ", exception);
          }
          logger.exiting(location);
          return location;
      }
docs: getCurrentURL will throw Exception