if (ext == null || ext.isEmpty()) {
ext = ".html";
path = Path.get().join(path, "index.html");
}
//if it exists, we can add it
Path.get().exists(path, new BooleanEventHandler() {
@Override
protected void onEvent(boolean value) {
if (!value) {
Util.get().log("Can't find path: " + path);
handleException(new HttpServerException(404, "Not found"));