}
// Somewhat awkward, but the two loops save building a separate combined list.
// Add disabled common ones with FALSE
for (Iterator i = getCommonPingTargets().iterator(); i.hasNext();) {
PingTarget pingTarget = (PingTarget) i.next();
if (isEnabled.get(pingTarget.getId()) == null) {
isEnabled.put(pingTarget.getId(), Boolean.FALSE);
}
}
// Add disabled custom ones with FALSE
for (Iterator i = getCustomPingTargets().iterator(); i.hasNext();) {
PingTarget pingTarget = (PingTarget) i.next();
if (isEnabled.get(pingTarget.getId()) == null) {
isEnabled.put(pingTarget.getId(), Boolean.FALSE);
}
}
if(isEnabled.size() > 0) {
setPingStatus(isEnabled);