File localModules = Play.getFile("modules");
Set<String> modules = new LinkedHashSet<String>();
if (localModules != null && localModules.exists() && localModules.isDirectory()) {
try {
File userHome = new File(System.getProperty("user.home"));
DependenciesManager dm = new DependenciesManager(applicationPath, frameworkPath, userHome);
modules = dm.retrieveModules();
} catch (Exception e) {
Logger.error("There was a problem parsing depencies.yml (module will not be loaded in order of the dependencies.yml)", e);
// Load module without considering the dependencies.yml order
modules.addAll(Arrays.asList(localModules.list()));
}