if (trace != null)
{
//Serialize the Parseq trace into JSON.
JsonTraceCodec traceCodec = new JsonTraceCodec();
traceCodec.encode(trace, outputStream);
}
}
catch (IOException exception)
{
callback.onError(new RestLiServiceException(HttpStatus.S_500_INTERNAL_SERVER_ERROR, exception));