if (model != null) {
if (model != null && controller != null) {
  private void updateCommunityStatus(String communityName,                                     String nodeName,                                     int nodeStatus,                                     AgentStatus[] agentStatus,                                     String leader,                                     String host) {    //if (model == null) {    //  initializeModel(communityName);    //}    if (model != null) {      model.applyUpdates(nodeName,                         nodeStatus,                         agentStatus,                         leader,                         host);    } else {      if (logger.isDebugEnabled()) {        logger.debug("Model not initialized");      }    }  }