3435363738394041424344
StyledLayerDescriptor sld = (StyledLayerDescriptor) value; SLDTransformer tx = new SLDTransformer(); try { tx.setIndentation(4); tx.transform(sld, output); } catch (TransformerException e) { throw new ServiceException(e); } }