}
@Override
public void run(HelloWorldConfiguration config, Environment environment) {
environment.jersey().register(new JsonResource()); // Test type 1: JSON serialization
environment.jersey().register(new WorldResource(new WorldDAO(hibernate.getSessionFactory()))); // Test types 2, 3 & 5: Single database query, Multiple database queries & Database updates
environment.jersey().register(new FortuneResource(new FortuneDAO(hibernate.getSessionFactory()))); // Test type 4: Fortunes
environment.jersey().register(new TextResource()); // Test type 6: Plaintext
}