logger.debug("Deserializing string [" + (String)o + "]");
try {
responseJSON = new JSONObject( (String)o );
} catch(Throwable t) {
logger.error("Object to be deserialized must be string encoding a JSON object",t);
throw new SerializationException("An error occurred while deserializing query: " + (String)o, t);
}
} else {
Assert.assertUnreachable("Object to be deserialized must be of type string or of type JSONObject, not of type [" + o.getClass().getName() + "]");
}