*/
private JSONObject jsonRule(Rule rule) {
JSONObject ruleSz = null;
String xmlRule;
XMLSerializer xmlS = new XMLSerializer();
SLDTransformer transform = new SLDTransformer();
transform.setIndentation(2);
try {
xmlRule = transform.transform(rule);
xmlS.setRemoveNamespacePrefixFromElements(true);
xmlS.setSkipNamespaces(true);
ruleSz = (JSONObject) xmlS.read(xmlRule);
} catch (TransformerException e) {
if (LOGGER.isLoggable(Level.FINE))
LOGGER.log(Level.FINE, "Exception occurred while transformin the Rule "
+ e.getLocalizedMessage(),e);
}