code: private String doQueryStringConversions(TermPath termPath, String queryStr) throws InvalidQueryException {
          String hierarchyPathProp = "hierarchy/path";
          // replace "."
          if (queryStr != null && queryStr.contains(String.format("%s:.", hierarchyPathProp))) {
              //todo: regular expression replacement
              queryStr = queryStr.replaceAll(String.format("%s:.", hierarchyPathProp),
                      String.format("%s:%s", hierarchyPathProp, termPath.getPath()));
          }
          return queryStr;
      }
docs: todo: similar path parsing code is used in several places in this class