Make getPortMapEntry accept a PortNameMap.