for (AppServerInfo appServerInfo : serverInfoList) {
String envIp = appServerInfo.getEnvIp();
if (serverMap.keySet().contains(envIp)) {
serverMap.get(envIp).add(appServerInfo);
}else {
List<AppServerInfo> tempServerList = new ArrayList<>();
tempServerList.add(appServerInfo);
serverMap.put(envIp, tempServerList);
}
}