Program: 47550
Project: 47550
Buggy source:
/** 
 * Processes the list of files and performs any processing required to import that data into the repository. If during processing it handles file(s) which should not be handled by downstream import handlers, then it should remove them from the set of files provided.
 * @param importFileSet the set of files to be imported - any files handled to completion by this Import Handlershould remove this files from this list
 * @param comment       the import comment provided
 * @param overwrite     indicates if the process is authorized to overwrite existing content in the repository
 * @throws ImportException indicates a significant error during import processing
 */
@Override public void doImport(final Iterable<ImportSource.IRepositoryFileBundle> importFileSet,final String destinationPath,final String comment,final boolean overwrite) throws ImportException {
  if (null == importFileSet || StringUtils.isEmpty(destinationPath)) {
    throw new IllegalArgumentException();
  }
  for (Iterator iterator=importFileSet.iterator(); iterator.hasNext(); ) {
    final ImportSource.IRepositoryFileBundle bundle=(ImportSource.IRepositoryFileBundle)iterator.next();
    final String bundlePath=computeBundlePath(bundle);
    if (isSystemPath(bundlePath)) {
      log.trace("String_Node_Str" + bundlePath + "String_Node_Str");
      continue;
    }
    final String bundlePathName=RepositoryFilenameUtils.concat(bundlePath,bundle.getFile().getName());
    final String repositoryFilePath=RepositoryFilenameUtils.concat(destinationPath,bundlePathName);
    final RepositoryFile file=repository.getFile(repositoryFilePath);
    if (file != null) {
      if (!overwrite) {
        log.trace("String_Node_Str");
      }
 else       if (file.isFolder()) {
        log.trace("String_Node_Str");
      }
 else {
        copyFileToRepository(bundle,destinationPath,bundlePath,bundlePathName,file,comment);
      }
      iterator.remove();
      continue;
    }
    if (bundle.getFile().isFolder()) {
      log.trace("String_Node_Str" + bundlePath);
      if (bundle.getAcl() != null) {
        repository.createFolder(getParentId(destinationPath,bundlePath),bundle.getFile(),bundle.getAcl(),comment);
      }
 else {
        repository.createFolder(getParentId(destinationPath,bundlePath),bundle.getFile(),comment);
      }
      iterator.remove();
    }
 else {
      if (copyFileToRepository(bundle,destinationPath,bundlePath,bundlePathName,null,comment)) {
        iterator.remove();
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Processes the list of files and performs any processing required to import that data into the repository. If during processing it handles file(s) which should not be handled by downstream import handlers, then it should remove them from the set of files provided.
 * @param importFileSet the set of files to be imported - any files handled to completion by this Import Handlershould remove this files from this list
 * @param comment       the import comment provided
 * @param overwrite     indicates if the process is authorized to overwrite existing content in the repository
 * @throws ImportException indicates a significant error during import processing
 */
@Override public void doImport(final Iterable<ImportSource.IRepositoryFileBundle> importFileSet,final String destinationPath,final String comment,final boolean overwrite) throws ImportException {
  if (null == importFileSet || StringUtils.isEmpty(destinationPath)) {
    throw new IllegalArgumentException();
  }
  for (Iterator iterator=importFileSet.iterator(); iterator.hasNext(); ) {
    final ImportSource.IRepositoryFileBundle bundle=(ImportSource.IRepositoryFileBundle)iterator.next();
    final String bundlePath=computeBundlePath(bundle);
    final String bundlePathName=RepositoryFilenameUtils.concat(bundlePath,bundle.getFile().getName());
    final String repositoryFilePath=RepositoryFilenameUtils.concat(destinationPath,bundlePathName);
    log.trace("String_Node_Str" + bundlePathName + "String_Node_Str");
    if (isSystemPath(bundlePathName)) {
      log.trace("String_Node_Str" + bundlePathName + "String_Node_Str");
      continue;
    }
    final RepositoryFile file=repository.getFile(repositoryFilePath);
    if (file != null) {
      if (file.isFolder() != bundle.getFile().isFolder()) {
        log.warn("String_Node_Str" + (file.isFolder() ? "String_Node_Str" : "String_Node_Str") + "String_Node_Str"+ (bundle.getFile().isFolder() ? "String_Node_Str" : "String_Node_Str"));
      }
      if (!overwrite) {
        log.trace("String_Node_Str");
      }
 else       if (file.isFolder()) {
        log.trace("String_Node_Str");
      }
 else {
        log.trace("String_Node_Str");
        copyFileToRepository(bundle,destinationPath,bundlePath,bundlePathName,file,comment);
      }
      iterator.remove();
      continue;
    }
    if (bundle.getFile().isFolder()) {
      log.trace("String_Node_Str" + bundlePath + "String_Node_Str");
      if (bundle.getAcl() != null) {
        repository.createFolder(getParentId(destinationPath,bundlePath),bundle.getFile(),bundle.getAcl(),comment);
      }
 else {
        repository.createFolder(getParentId(destinationPath,bundlePath),bundle.getFile(),comment);
      }
      iterator.remove();
    }
 else {
      if (copyFileToRepository(bundle,destinationPath,bundlePath,bundlePathName,null,comment)) {
        iterator.remove();
      }
    }
  }
}