@Override public void start() throws Exception { // Create the client object service = new MongoServiceImpl(MongoClient.createNonShared(vertx, config())); // And register it on the event bus against the configured address String address = config().getString("address"); if (address == null) { throw new IllegalStateException("address field must be specified in config for client verticle"); } ProxyHelper.registerService(MongoService.class, vertx, service, address); }