public JSONObject sendAndReceive(JSONObject message) {
if (log.isDebugEnabled()) log.debug("Sending: " + message.toString(2));
PostMethod postMethod = new PostMethod(uri.toString());
postMethod.setRequestHeader("Content-Type", "text/plain");
RequestEntity requestEntity= new StringRequestEntity(message.toString());
postMethod.setRequestEntity(requestEntity);
try {
http().executeMethod(null, postMethod, state);
int statusCode= postMethod.getStatusCode();
if (statusCode!=HttpStatus. SC_OK)