generator/api/src/main/java/io/fabric8/maven/generator/api/support/AbstractPortsExtractor.java
private void addPortIfValid(Map<String, Integer> map, String key, String port) {
        if (StringUtils.isNotBlank(port)) {
            String t = port.trim();
            if (t.matches(NUMBER_REGEX)) {
                map.put(key, Integer.parseInt(t));
            }
        }
    }
private void addPortIfValid(Map<String, Integer> map, String key, String port) {
        if (StringUtils.isNotBlank(port)) {
            String t = port.trim();
            if (t.matches(NUMBER_REGEX)) {
                map.put(key, Integer.parseInt(t));
            }
        }
    }
Adds a port to the list.
@param map   The list.
@param key   The key.
@param port  The candidate port.