@Override
 public void run(HelloWorldConfiguration configuration, Environment environment) throws Exception {
   final HelloWorldResource resource =
       new HelloWorldResource(configuration.getTemplate(), configuration.getDefaultName());
   final TemplateHealthCheck healthCheck = new TemplateHealthCheck(configuration.getTemplate());
   environment.healthChecks().register("template", healthCheck);
   environment.jersey().register(resource);
 }
  public void run(HelloWorldConfiguration configuration, Environment environment) throws Exception {
    final PersonDAO personDao = new PersonDAO(hibernateBundle.getSessionFactory());

    final HelloWorldResource helloWorldResource =
        new HelloWorldResource(configuration.getTemplate(), configuration.getDefaultName());

    final TemplateHealthCheck healthCheck = new TemplateHealthCheck(configuration.getTemplate());
    environment.healthChecks().register("template", healthCheck);
    environment.jersey().register(helloWorldResource);
    environment.jersey().register(new PeopleResource(personDao));
    environment.jersey().register(new PersonResource(personDao));
  }