Program: 125328
Project: 125328
Buggy source:
@Override public void deployComponentAndExtensionLibs(IProgressMonitor... monitorWrap){
  Set<String> libsWithoutUri=new HashSet<String>();
  Map<String,String> libsToRelativePath=new HashMap<String,String>();
  Map<String,String> libsToMavenUri=new HashMap<String,String>();
  List<ModuleNeeded> modules=new ArrayList<ModuleNeeded>();
  Set<String> duplicateLocationJar=new HashSet<String>();
  Set<String> duplicateMavenUri=new HashSet<String>();
  IComponentsService service=null;
  if (GlobalServiceRegister.getDefault().isServiceRegistered(IComponentsService.class)) {
    service=(IComponentsService)GlobalServiceRegister.getDefault().getService(IComponentsService.class);
  }
  if (service != null) {
    for (    IComponent component : service.getComponentsFactory().getComponents()) {
      try {
        modules.addAll(component.getModulesNeeded());
      }
 catch (      Exception e) {
        ExceptionHandler.process(e);
        continue;
      }
    }
  }
  deployIndex(modules,libsWithoutUri,libsToRelativePath,duplicateLocationJar,libsToMavenUri,duplicateMavenUri,monitorWrap);
  if (CommonsPlugin.isDebugMode()) {
    if (!duplicateLocationJar.isEmpty()) {
      warnDuplicated(modules,duplicateLocationJar,"String_Node_Str");
    }
    if (!duplicateMavenUri.isEmpty()) {
      warnDuplicated(modules,duplicateMavenUri,"String_Node_Str");
    }
  }
  deployMavenIndex(libsToMavenUri,monitorWrap);
  if (platfromUriFromExtensions.isEmpty() || mavenUriFromExtensions.isEmpty()) {
    deployExtensionIndex();
  }
  deploy(platfromUriFromExtensions,monitorWrap);
  deployMavenIndex(mavenUriFromExtensions,monitorWrap);
  if (service != null) {
    deployLibForComponentProviders(service,libsWithoutUri,libsToRelativePath);
  }
  deploy(libsToRelativePath,monitorWrap);
}

Fixed version (ground truth):
@Override public void deployComponentAndExtensionLibs(IProgressMonitor... monitorWrap){
  Set<String> libsWithoutUri=new HashSet<String>();
  Map<String,String> libsToRelativePath=new HashMap<String,String>();
  Map<String,String> libsToMavenUri=new HashMap<String,String>();
  List<ModuleNeeded> modules=new ArrayList<ModuleNeeded>();
  Set<String> duplicateLocationJar=new HashSet<String>();
  Set<String> duplicateMavenUri=new HashSet<String>();
  IComponentsService service=null;
  if (GlobalServiceRegister.getDefault().isServiceRegistered(IComponentsService.class)) {
    service=(IComponentsService)GlobalServiceRegister.getDefault().getService(IComponentsService.class);
  }
  if (service != null) {
    for (    IComponent component : service.getComponentsFactory().readComponents()) {
      try {
        modules.addAll(component.getModulesNeeded());
      }
 catch (      Exception e) {
        ExceptionHandler.process(e);
        continue;
      }
    }
  }
  deployIndex(modules,libsWithoutUri,libsToRelativePath,duplicateLocationJar,libsToMavenUri,duplicateMavenUri,monitorWrap);
  if (CommonsPlugin.isDebugMode()) {
    if (!duplicateLocationJar.isEmpty()) {
      warnDuplicated(modules,duplicateLocationJar,"String_Node_Str");
    }
    if (!duplicateMavenUri.isEmpty()) {
      warnDuplicated(modules,duplicateMavenUri,"String_Node_Str");
    }
  }
  deployMavenIndex(libsToMavenUri,monitorWrap);
  if (platfromUriFromExtensions.isEmpty() || mavenUriFromExtensions.isEmpty()) {
    deployExtensionIndex();
  }
  deploy(platfromUriFromExtensions,monitorWrap);
  deployMavenIndex(mavenUriFromExtensions,monitorWrap);
  if (service != null) {
    deployLibForComponentProviders(service,libsWithoutUri,libsToRelativePath);
  }
  deploy(libsToRelativePath,monitorWrap);
}