}
private MuleMessage output(final MuleMessage request,
final ResponseContext context, final MuleContext muleContext) throws IOException
{
OutputHandler payload = new OutputHandler()
{
public void write(MuleEvent event, OutputStream out) throws IOException
{
if (context.hasEntity())