* @param optStatus
*/
private void updateStatusOfWs(EndpointReferenceType epr, String optStatus) {
String epr1=epr.getAddress().getStringValue();
for (Iterator iter = model.iterator(); iter.hasNext();) {
WsImpl ws = (WsImpl) iter.next();
if(!(ws instanceof IWc)){
EndpointReference eprTest = ws.getEpr();
if(epr.getAddress().getStringValue().endsWith("anonymous")){
if(eprTest.getAddress().endsWith("WeatherStationSOAP")){
Color color=colorFromStatus(optStatus);
statusJPanel.setColor(ws.getName(),color);
}
}
else {
if(eprTest.getAddress().equals(epr.getAddress().getStringValue())){
Color color=colorFromStatus(optStatus);
statusJPanel.setColor(ws.getName(),color);
}
}
repairIfNeeded(ws.getName(),optStatus);
}
}
}