private void addVarPortPart(StringBuilder sb, Map<String, List<BreezeEvent>> portSendEventMap,
			Map<String, List<BreezeEvent>> outerEventBuffer) {
		for (String key : this.portMap.keySet()) {
			BreezePort port = this.portMap.get(key);

			List<BreezeEvent> sendLst = portSendEventMap.get(port.getId());

			if (port.isOutPort()) {
				sb.append(templateVar.replaceAll("\\$\\{var\\}", port.getSmvOutName()).replaceAll("\\$\\{value\\}",
						this.extractEventValues(sendLst)));
			}

			if (port.isInPort()) {
				Map<String, BreezePort> sourcePorts = port.getSource();

				for (String srcId : sourcePorts.keySet()) {
					String varId = port.getSmvInName(srcId);
					sb.append(templateVar.replaceAll("\\$\\{var\\}", varId).replaceAll("\\$\\{value\\}",
							this.extractEventValues(outerEventBuffer.get(varId))));
				}
			}
		}
	}