split checkPartnerPort method in PortMapping