code: public final void evalAttributes(final StringBuffer pSb,
      final Map<String, String> pAttributesMap) throws Exception {
      String str = pSb.toString().trim();
      if (str.length() > 3 //minimum is a=""
        && str.endsWith("\"") && str.indexOf("\"") != str.length() - 1) {
        int equalsIdx = str.indexOf("=");
        if (equalsIdx == -1) {
          throw new ExceptionWithCode(ExceptionWithCode
            .SOMETHING_WRONG, "There is no equals character in " + str);
        }
        String attrName = str.substring(0, equalsIdx);
        String attrVal = str.substring(str.indexOf("\"") + 1, str.length() - 1);
        pAttributesMap.put(attrName, attrVal);
        pSb.delete(0, pSb.length());
      }
    }
docs: <p>Try to eval content of string buffer if it's an attribute
  with value then fill map and clear buffer.
  For improving performance unescapeXml should invoked
  explicitly when it's need (for field like itsName or description).</p>
  @param pSb StringBuffer
  @param pAttributesMap Attributes Map
  @throws Exception - an exception