Implemented createPort of PortRepository.