private String matchRecvRule(TimeStampedMessage msg) {
		this.ruleLock.lock();
		ConfigurationParser.checkAndUpdateRulesIfChanged(this.configFileName, this.sendRules, this.recvRules);
		for(Rule r : this.recvRules){
			if( equalsIfNotNull(msg.getSrc(),r.getSrc()) 
					&& equalsIfNotNull(msg.getDest(),r.getDest()) 
					&& equalsIfNotNull(msg.getKind(),r.getKind()) 
					&& ( r.getSeqNum() < 0 || msg.getSeqNum() == r.getSeqNum() )
					&& ( r.isDuplicate() == null ||  msg.isDupe() == r.isDuplicate()) )
			{
				this.ruleLock.unlock();
				return r.getAction();
			}
		}
		this.ruleLock.unlock();
		return null;
	}