if (LogWriter.needsLogging) { logWriter.logMessage("findCancelTransaction request= \n"
if (logWriter.isLoggingEnabled()) { logWriter.logDebug("findCancelTransaction request= \n"
	public SIPTransaction findCancelTransaction(SIPRequest cancelRequest,			boolean isServer) {		if (LogWriter.needsLogging) {			logWriter.logMessage("findCancelTransaction request= \n"					+ cancelRequest + "\nfindCancelRequest isServer="					+ isServer);		}		if (isServer) {			synchronized (this.serverTransactions) {				Iterator li = this.serverTransactions.iterator();				while (li.hasNext()) {					SIPTransaction transaction = (SIPTransaction) li.next();					SIPRequest sipRequest = (SIPRequest) (transaction							.getRequest());					SIPServerTransaction sipServerTransaction = (SIPServerTransaction) transaction;					if (sipServerTransaction							.doesCancelMatchTransaction(cancelRequest))						return sipServerTransaction;				}			}		} else {			synchronized (this.clientTransactions) {				Iterator li = this.clientTransactions.iterator();				while (li.hasNext()) {					SIPTransaction transaction = (SIPTransaction) li.next();					SIPRequest sipRequest = (SIPRequest) (transaction							.getRequest());					SIPClientTransaction sipClientTransaction = (SIPClientTransaction) transaction;					if (sipClientTransaction							.doesCancelMatchTransaction(cancelRequest))						return sipClientTransaction;				}			}		}		if (LogWriter.needsLogging) 		    logWriter.logMessage("Could not find transaction for cancel request");		return null;	}