}
}
pktsOut[p.getPacketType()] ++;
//LKS- deal with metrics
try {
ReadWritePacket rp = new ReadWritePacket();
rp.fill(p, !control);
// CR 6897721 always sent STOP_REPLY via the output queue
if (BrokerInstanceImpl.isTwoThreadSyncReplies && rp.isReply() && rp.getPacketType()!=PacketType.STOP_REPLY){
// this is a reply packet
// this is the same thread that sent the request, so we
// save the reply in a ThreadLocal to pass it directly to the requester
putReply(rp);
} else {