private String getUniquePath(XmlTag tag) {
      XmlTag parent = tag.getParentTag();

      if (parent == null) {
        return "/" + getXPathNameStep(tag);
      }

      final StringBuilder buffer = new StringBuilder();
      if (parent != context) {
        buffer.append(getUniquePath(parent));
        buffer.append("/");
      }

      buffer.append(getXPathNameStep(tag));

      return makeUnique(buffer.toString(), tag);
    }
private String getUniquePath(XmlTag tag)