public static void setInjector(Injector injector) {
    DatabaseConsistencyCheckHelper.injector = injector;
    // Clean up: new injector means static fields should be reinitalized, though in real life it only occurs during testing
    closeConnection();
    connection = null;
    metainfoDAO = null;
    alertDefinitionDAO = null;
    ambariMetaInfo = null;
    dbAccessor = null;
  }
Called to indicate an error during checks

@param messageTemplate Message template (log4j format)
@param messageParams Message params
ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java