Refactor findPort in service pkg
Refactor test for findPort in service pkg
Fix findPort: correctly handle the empty ports case
Merge pull request #2198 from claire921/service

Service