code: public final Map<String, String> getStyles() {
      Map<String, String> styleMap = new HashMap<String, String>();
  
      // de-serialize style string, fill style map
      String styleString = getStyleString();
      if (styleString != null) {
        String[] styles = StringUtils.split(styleString, ";");
        for (String styleSubString : styles) {
          String[] styleParts = StringUtils.split(styleSubString, ":");
          if (styleParts.length > 1) {
            styleMap.put(styleParts[0].trim(), styleParts[1].trim());
          }
        }
      }
  
      return styleMap;
    }
docs: Html "style" attribute.
  @return Returns map of style key/value pairs.