layer.getStyles().add(style);
return this;
}
StyleInfo newStyle(boolean global) throws IOException {
StyleGenerator styleGen = new StyleGenerator(catalog);
if (!global) {
styleGen.setWorkspace(parent.parent.workspace);
}
return styleGen.createStyle(featureType);
}