if (m == null) {
return null;
} else if (m instanceof ResponseMessage) {
return (ResponseMessage) m;
} else if (m instanceof TapAck) {
TapAck ack = (TapAck) m;
tapAck((com.couchbase.client.TapConnectionProvider)ack.getConn(),
ack.getNode(), ack.getOpcode(), ack.getOpaque(), ack.getCallback());
return null;
} else {
throw new RuntimeException("Unexpected tap message type");
}
} catch (InterruptedException e) {