code: public static void isValidXpath(String locator) {
          logger.entering(locator);
          Preconditions.checkArgument(StringUtils.isNotBlank(locator), INVALID_LOCATOR_ERR_MSG);
          if (locator.startsWith("xpath=/") || locator.startsWith("/")) {
              throw new UnsupportedOperationException(
                      "Use xpath dot notation to search for Container descendant elements. Example: \".//myLocator\". ");
          }
          logger.exiting();
      }
docs: Validates a child locator to have the xpath dot notation.
  
  @param locator
  String that represents the xpath locator for an element.