Map<String,String> emptyMap = new HashMap<String, String>();
SortedMap<Integer, String> sortedInternalPorts = new TreeMap<Integer, String>();
for (Map.Entry<String, String> portEntry : ports.entrySet()) {
String portName = portEntry.getKey();
String portText = portEntry.getValue();
<BUG>if (portText != null && !Strings.isEmpty(portText)) {
</BUG>
Integer port = null;
try {
port = Integer.parseInt(portText);

Map<String,String> emptyMap = new HashMap<String, String>();
SortedMap<Integer, String> sortedInternalPorts = new TreeMap<Integer, String>();
for (Map.Entry<String, String> portEntry : ports.entrySet()) {
String portName = portEntry.getKey();
String portText = portEntry.getValue();
if (portText != null && !Strings.isNullOrBlank(portText)) {
Integer port = null;
try {
port = Integer.parseInt(portText);
