Add some logic to locate port via parameters if the resource is not locally defined