w.key("info").value("Requested state change");
w.key(PARAM_STATE).value(desiredState.toString());
w.key("path").value(j.getPath());
w.key("currentState").value(newState);
w.key("stateChanged").value(newState != oldState);
w.endObject();
} catch(JSONException je) {
throw new ServletException("JSONException in doPost", je);
}
}
}