static int getRowsNumber(XmlTag tag) {
    XmlAttribute[] attributes = tag.getAttributes();
    for (XmlAttribute attribute : attributes) {
      if (ROWSPAN.equals(attribute.getLocalName())) {
        try {
          return Integer.parseInt(attribute.getValue());
        }
        catch (NumberFormatException e) {
          return 1;
        }
      }
    }
    return 1;
  }
static int getRowsNumber(XmlTag tag)