@Override
public void run(HelloWorldConfiguration config, Environment environment) throws UnknownHostException
{
Mongo mongo = new Mongo(config.mongohost, config.mongoport);
MongoManaged mongoManaged = new MongoManaged(mongo);
environment.manage(mongoManaged);
environment.addHealthCheck(new MongoHealthCheck(mongo));
DB db = mongo.getDB(config.mongodb);
JacksonDBCollection<World, String> worlds = JacksonDBCollection.wrap(db.getCollection("world"), World.class, String.class);
environment.addResource(new WorldResource(worlds));