public void updateModule(org.jboss.modules.Module module,DependencySpec dependencySpec) throws ModuleLoadException {
  ModuleIdentifier mi=module.getIdentifier();
  List<DependencySpec> deps=dependencies.get(mi);
  if (deps == null)   return;
  deps.add(dependencySpec);
  setAndRelinkDependencies(module,deps);
  refreshResourceLoaders(module);
  relink(mi,new HashSet<ModuleIdentifier>());
}

public void updateModule ( org . jboss . modules . Module module , DependencySpec dependencySpec ) throws ModuleLoadException { ModuleIdentifier mi = module . getIdentifier ( ) ; List < DependencySpec > deps = dependencies . get ( mi ) ; if ( deps == null ) return ; deps . add ( dependencySpec ) ; setAndRelinkDependencies ( module , deps ) ; refreshResourceLoaders ( module ) ; relink ( mi , new HashSet < ModuleIdentifier > ( ) ) ; }
update module . should be thread safe per module .
