code: public Map<String, String> toKeyValueMap() {
          Map<String, String> valueMap = new HashMap<String, String>();
          String[] tokens;
          
          if (selectorString.contains(" AND")) {
              String[] chunks = selectorString.split(" AND");
              for (String chunk : chunks) {
                  tokens = escapeEqualsFromXpathNodeTest(chunk).split("=");
                  valueMap.put(unescapeEqualsFromXpathNodeTest(tokens[0].trim()), tokens[1].trim().substring(1, tokens[1].trim().length() -1));
              }
          } else {
              tokens = escapeEqualsFromXpathNodeTest(selectorString).split("=");
              valueMap.put(unescapeEqualsFromXpathNodeTest(tokens[0].trim()), tokens[1].trim().substring(1, tokens[1].trim().length() -1));
          }
          
          return valueMap;
      }
docs: Constructs a key value map from selector string representation.
  @return