private static void extractProperties(PolygonSymbolizerInfo psi, Map<String, Object> properties) {
if (psi.getStroke() != null && psi.getStroke().getCssParameterList() != null) {
List<CssParameterInfo> plist = psi.getStroke().getCssParameterList();
properties.put(STROKECOLOR, extractCssPropertyValue(STROKECOLOR, plist, DEFAULT_STROKECOLOR));
properties.put(STROKEOPACITY, extractCssPropertyValue(STROKEOPACITY, plist, DEFAULT_STROKEOPACITY));
properties.put(STROKEWIDTH, extractCssPropertyValue(STROKEWIDTH, plist, DEFAULT_STROKEWIDTH));
}
if (psi.getFill() != null && psi.getFill().getCssParameterList() != null) {
List<CssParameterInfo> plist = psi.getFill().getCssParameterList();
properties.put(FILLCOLOR, extractCssPropertyValue(FILLCOLOR, plist, DEFAULT_FILLCOLOR));
properties.put(FILLOPACITY, extractCssPropertyValue(FILLOPACITY, plist, DEFAULT_FILLOPACITY));
}
}