}
if (AtmosphereInterceptorWriter.class.isAssignableFrom(writer.getClass())) {
// WebSocket already had one.
if (r.transport() != AtmosphereResource.TRANSPORT.WEBSOCKET) {
writer = new AtmosphereInterceptorWriter() {
@Override
protected void writeReady(AtmosphereResponse response, byte[] data) throws IOException {
// We are buffering response.