List<Rule> currentRules = featureTypeStyle.rules();
for( int i = 0; i < rules.size(); i++ ) {
Rule rule = rules.get(i);
currentRules.add(rule);
}
namedStyle.featureTypeStyles().add(featureTypeStyle);
} else {
for( int i = 0; i < rules.size(); i++ ) {
FeatureTypeStyle featureTypeStyle = Utilities.sf.createFeatureTypeStyle();
Rule rule = rules.get(i);
featureTypeStyle.rules().add(rule);