*/
public JsonRepresentation getJsonRepresentation(TileLayer layer) {
JsonRepresentation rep = null;
try {
XStream xs = xmlConfig.getConfiguredXStreamWithContext(new XStream(
new JsonHierarchicalStreamDriver()), Context.REST);
JSONObject obj = new JSONObject(xs.toXML(layer));
rep = new JsonRepresentation(obj);
} catch (JSONException jse) {
jse.printStackTrace();
}