code: public void setHealthCheckRegistry(Object healthCheckRegistry)
     {
        checkIfSealed();
  
        if (healthCheckRegistry != null) {
           healthCheckRegistry = getObjectOrPerformJndiLookup(healthCheckRegistry);
  
           if (!(healthCheckRegistry instanceof HealthCheckRegistry)) {
              throw new IllegalArgumentException("Class must be an instance of com.codahale.metrics.health.HealthCheckRegistry");
           }
        }
  
        this.healthCheckRegistry = healthCheckRegistry;
     }
docs: Set the HealthCheckRegistry that will be used for registration of health checks by HikariCP.  Currently only
  Codahale/DropWizard is supported for health checks.  Default is {@code null}.
  
  @param healthCheckRegistry the HealthCheckRegistry to be used