SLDTransformer aTransformer = new SLDTransformer();
aTransformer.setIndentation(StyleEditor.INDENT);
String xml = ""; //$NON-NLS-1$
if (target instanceof StyledLayerDescriptor) {
StyledLayerDescriptor sld = (StyledLayerDescriptor) target;
xml = aTransformer.transform(sld);
} else {
SLDPlugin.log("StyledLayerDescriptor not found", null); //$NON-NLS-1$
throw (IOException) new IOException("SLD not found"); //$NON-NLS-1$
}
FileWriter w = new FileWriter(file);