writer.writeTo(ent, type, generic, annotations,
contentType, getMetadata(), os);
}
else
{
ServerMessageBodyWriterContext ctx = new ServerMessageBodyWriterContext(messageBodyWriterInterceptors, writer, ent, type, generic,
annotations, contentType, getMetadata(), os, request);
ctx.proceed();
}
callback.commit(); // just in case the output stream is never used
}
catch (Exception ex)
{