public String getObject() {
try {
// if file already in css format transform to sld, otherwise load the SLD file
if (CssHandler.FORMAT.equals(style.getFormat())) {
StyledLayerDescriptor sld = Styles.sld(style.getStyle());
return Styles.string(sld, new SLDHandler(), SLDHandler.VERSION_10, true);
} else {
File file = findStyleFile(style);
if (file != null && file.isFile()) {
BufferedReader reader = null;
try {