if (exception != null) {
object.put("error", new JsonError(exception));
}
if (envelope != null) {
object.put("envelope", new JsonMessageEnvelope(envelope, content, m));
}
if (exception != null) {
object.put("error", new JsonError(exception));
}
if (envelope != null) {
object.put("envelope", new JsonMessageEnvelope(envelope, content, m));
}