@Override
public void write(Object value, OutputStream output, Operation operation) throws IOException,
ServiceException {
StyledLayerDescriptor sld = (StyledLayerDescriptor) value;
SLDTransformer tx = new SLDTransformer();
try {
tx.setIndentation(4);
tx.transform(sld, output);
} catch (TransformerException e) {
throw new ServiceException(e);
}
}