/**
* {@inheritDoc}
*/
@Override
default public URI getAddress() {
RatpackServer server = getServer();
try {
if (!server.isRunning()) {
server.start();
}
return new URI(server.getScheme(), null, server.getBindHost(), server.getBindPort(), "/", null, null);
} catch (Exception e) {
throw uncheck(e);
}
}