public String updatePortProtocol(String port) {
        if (port != null) {
            String[] portAndProtocol = port.split(ToolConstants.PORTS_PROTOCOL_SEPARATOR);
            String protocol = portAndProtocol.length > 1 ? ServiceProtocol.fromString(portAndProtocol[1]).getProtocolString()
                    : DefaultPortsBuilder.ServiceProtocol.TCP.getProtocolString();
            return portAndProtocol[0] + ToolConstants.PORTS_PROTOCOL_SEPARATOR + protocol;
        }
        return null;
    }
This class is to generate the default ports taken from the
service spec for the manifest snippet.
Handles Ports for Services as well as Agents.
manifest-generator/generator-services/src/main/java/io/hyscale/generator/services/builder/DefaultPortsBuilder.java