// create LinearRing rule
rule=sldContentManager.createRule();
filter = createGeometryFunctionFilter(geomXPath, LinearRing.class.getSimpleName());
rule.setFilter(filter);
rule.symbolizers().add(createLineSymbolizer(colour));
sldContentManager.getDefaultFeatureTypeStyle().rules().add(rule);
// create MultiLineString rule
rule=sldContentManager.createRule();
filter = createGeometryFunctionFilter(geomXPath, MultiLineString.class.getSimpleName());