// Applications with a default constructor
// findSubclasses will not work by default to gain a lot of time
// look FinderFactory for the flag to activate it or
// use @ApplicationPath("/")
List<Class<? extends Application>> applications = finder.findSubclasses(Application.class);
for (Class<? extends Application> app : applications) {
addRestApplicationIfPossible(webModule, app);
}
// look for ApplicationPath, it will often return the same than the previous one