Adapted the new FoxxApplication API