element.addProperty( ModelElement.ANALYSIS_STATUS_COUNT, currentlyRunningStatuses.get(elementName) );
runningStatusMap = (Map)currentlyRunningStatuses.get(elementName);  if(runningStatusMap.get(ModelElement.SUBMITTED) != null){ element.addProperty( ModelElement.SUBMITTED, runningStatusMap.get(ModelElement.SUBMITTED) ); }  if(runningStatusMap.get(ModelElement.RUNNING) != null){ element.addProperty( ModelElement.RUNNING, runningStatusMap.get(ModelElement.RUNNING) ); }  if(runningStatusMap.get(ModelElement.FAILED) != null){ element.addProperty( ModelElement.FAILED, runningStatusMap.get(ModelElement.FAILED) ); }
  protected void addMonitorInformation(    Statement statement,     Collection allElements  ) throws SQLException{    Iterator elements = allElements.iterator();    HashMap currentlyRunningStatuses = getCurrentlyRunningJobStatuses(statement);    HashMap finishedCounts = getFinishedCounts(statement);    ModelElement element;    String elementName;    while(elements.hasNext()){      element = (ModelElement)elements.next();      elementName = element.getKey();      if(finishedCounts.get(elementName)!= null){        element.addProperty(ModelElement.FINISHED_COUNT, finishedCounts.get(elementName));      }            if(currentlyRunningStatuses.get(elementName)!=null){        element.addProperty(          ModelElement.ANALYSIS_STATUS_COUNT,           currentlyRunningStatuses.get(elementName)        );      }    }  }