when(this.style.getFormat()).thenReturn("sld");
ByteArrayOutputStream content = new ByteArrayOutputStream();
SLDTransformer tx = new SLDTransformer();
tx.setIndentation(2);
try {
tx.transform( style, content );
resources.resource(Paths.path("workspaces",wsName,"styles",fileName), content.toString() );
} catch (TransformerException e) {
throw new RuntimeException(e);
}
return this;