private String checkAllDependencies(HashMap<String,ModuleDescriptor> modlist){
  for (  ModuleDescriptor md : modlist.values()) {
    String res=checkDependencies(md,modlist);
    if (!res.isEmpty()) {
      return res;
    }
  }
  return "";
}

private String checkAllDependencies ( HashMap < String , ModuleDescriptor > modlist ) { for ( ModuleDescriptor md : modlist . values ( ) ) { String res = checkDependencies ( md , modlist ) ; if ( ! res . isEmpty ( ) ) { return res ; } } return "" ; }
check that all dependencies are satisfied . usually called with a copy of the modules list , after making some change .
