Program: 100803
Project: 100803
Buggy source:
/** 
 * Entry point of MoveMetaModule.
 * @param input Input parameters and resources.
 * @return null
 * @throws DITAOTException exception
 */
public AbstractPipelineOutput execute(final AbstractPipelineInput input) throws DITAOTException {
  if (logger == null) {
    throw new IllegalStateException("String_Node_Str");
  }
  final File tempDir=new File(input.getAttribute(ANT_INVOKER_PARAM_TEMPDIR));
  if (!tempDir.isAbsolute()) {
    throw new IllegalArgumentException("String_Node_Str" + tempDir + "String_Node_Str");
  }
  Job job=null;
  try {
    job=new Job(tempDir);
  }
 catch (  final IOException e) {
    throw new DITAOTException(e);
  }
  final MapMetaReader metaReader=new MapMetaReader();
  metaReader.setLogger(logger);
  final Set<String> fullditamaplist=job.getSet(FULL_DITAMAP_LIST);
  for (  String mapFile : fullditamaplist) {
    mapFile=new File(tempDir,mapFile).getAbsolutePath();
    logger.logInfo("String_Node_Str" + mapFile);
    metaReader.read(mapFile);
    final File oldMap=new File(mapFile);
    final File newMap=new File(mapFile + "String_Node_Str");
    if (newMap.exists()) {
      if (!oldMap.delete()) {
        final Properties p=new Properties();
        p.put("String_Node_Str",oldMap.getPath());
        p.put("String_Node_Str",newMap.getAbsolutePath() + "String_Node_Str");
        logger.logError(MessageUtils.getMessage("String_Node_Str",p).toString());
      }
      if (!newMap.renameTo(oldMap)) {
        final Properties p=new Properties();
        p.put("String_Node_Str",oldMap.getPath());
        p.put("String_Node_Str",newMap.getAbsolutePath() + "String_Node_Str");
        logger.logError(MessageUtils.getMessage("String_Node_Str",p).toString());
      }
    }
  }
  final Map<String,Hashtable<String,Element>> mapSet=metaReader.getMapping();
  ;
  final DitaMapMetaWriter mapInserter=new DitaMapMetaWriter();
  mapInserter.setLogger(logger);
  for (  final Entry<String,Hashtable<String,Element>> entry : mapSet.entrySet()) {
    String targetFileName=entry.getKey();
    targetFileName=targetFileName.indexOf(SHARP) != -1 ? targetFileName.substring(0,targetFileName.indexOf(SHARP)) : targetFileName;
    if (targetFileName.endsWith(FILE_EXTENSION_DITAMAP)) {
      content.setValue(entry.getValue());
      mapInserter.setContent(content);
      if (FileUtils.fileExists(entry.getKey())) {
        logger.logInfo("String_Node_Str" + entry.getKey());
        mapInserter.write(entry.getKey());
      }
 else {
        logger.logError("String_Node_Str" + entry.getKey() + "String_Node_Str");
      }
    }
  }
  final DitaMetaWriter topicInserter=new DitaMetaWriter();
  topicInserter.setLogger(logger);
  for (  final Map.Entry<String,Hashtable<String,Element>> entry : mapSet.entrySet()) {
    String targetFileName=entry.getKey();
    targetFileName=targetFileName.indexOf(SHARP) != -1 ? targetFileName.substring(0,targetFileName.indexOf(SHARP)) : targetFileName;
    if (targetFileName.endsWith(FILE_EXTENSION_DITA) || targetFileName.endsWith(FILE_EXTENSION_XML)) {
      content.setValue(entry.getValue());
      topicInserter.setContent(content);
      if (FileUtils.fileExists(entry.getKey())) {
        logger.logInfo("String_Node_Str" + entry.getKey());
        topicInserter.write(entry.getKey());
      }
 else {
        logger.logError("String_Node_Str" + entry.getKey() + "String_Node_Str");
      }
    }
  }
  return null;
}

Fixed version (ground truth):
/** 
 * Entry point of MoveMetaModule.
 * @param input Input parameters and resources.
 * @return null
 * @throws DITAOTException exception
 */
public AbstractPipelineOutput execute(final AbstractPipelineInput input) throws DITAOTException {
  if (logger == null) {
    throw new IllegalStateException("String_Node_Str");
  }
  final File tempDir=new File(input.getAttribute(ANT_INVOKER_PARAM_TEMPDIR));
  if (!tempDir.isAbsolute()) {
    throw new IllegalArgumentException("String_Node_Str" + tempDir + "String_Node_Str");
  }
  Job job=null;
  try {
    job=new Job(tempDir);
  }
 catch (  final IOException e) {
    throw new DITAOTException(e);
  }
  final MapMetaReader metaReader=new MapMetaReader();
  metaReader.setLogger(logger);
  final Set<String> fullditamaplist=job.getSet(FULL_DITAMAP_LIST);
  for (  String mapFile : fullditamaplist) {
    mapFile=new File(tempDir,mapFile).getAbsolutePath();
    logger.logInfo("String_Node_Str" + mapFile);
    metaReader.read(mapFile);
    final File oldMap=new File(mapFile);
    final File newMap=new File(mapFile + "String_Node_Str");
    if (newMap.exists()) {
      if (!oldMap.delete()) {
        final Properties p=new Properties();
        p.put("String_Node_Str",oldMap.getPath());
        p.put("String_Node_Str",newMap.getAbsolutePath() + "String_Node_Str");
        logger.logError(MessageUtils.getMessage("String_Node_Str",p).toString());
      }
      if (!newMap.renameTo(oldMap)) {
        final Properties p=new Properties();
        p.put("String_Node_Str",oldMap.getPath());
        p.put("String_Node_Str",newMap.getAbsolutePath() + "String_Node_Str");
        logger.logError(MessageUtils.getMessage("String_Node_Str",p).toString());
      }
    }
  }
  final Map<String,Hashtable<String,Element>> mapSet=metaReader.getMapping();
  final DitaMapMetaWriter mapInserter=new DitaMapMetaWriter();
  mapInserter.setLogger(logger);
  for (  final Entry<String,Hashtable<String,Element>> entry : mapSet.entrySet()) {
    String targetFileName=entry.getKey();
    targetFileName=targetFileName.indexOf(SHARP) != -1 ? targetFileName.substring(0,targetFileName.indexOf(SHARP)) : targetFileName;
    if (targetFileName.endsWith(FILE_EXTENSION_DITAMAP)) {
      content.setValue(entry.getValue());
      mapInserter.setContent(content);
      if (FileUtils.fileExists(entry.getKey())) {
        logger.logInfo("String_Node_Str" + entry.getKey());
        mapInserter.write(entry.getKey());
      }
 else {
        logger.logError("String_Node_Str" + entry.getKey() + "String_Node_Str");
      }
    }
  }
  final DitaMetaWriter topicInserter=new DitaMetaWriter();
  topicInserter.setLogger(logger);
  for (  final Map.Entry<String,Hashtable<String,Element>> entry : mapSet.entrySet()) {
    String targetFileName=entry.getKey();
    targetFileName=targetFileName.indexOf(SHARP) != -1 ? targetFileName.substring(0,targetFileName.indexOf(SHARP)) : targetFileName;
    if (targetFileName.endsWith(FILE_EXTENSION_DITA) || targetFileName.endsWith(FILE_EXTENSION_XML)) {
      content.setValue(entry.getValue());
      topicInserter.setContent(content);
      if (FileUtils.fileExists(entry.getKey())) {
        logger.logInfo("String_Node_Str" + entry.getKey());
        topicInserter.write(entry.getKey());
      }
 else {
        logger.logError("String_Node_Str" + entry.getKey() + "String_Node_Str");
      }
    }
  }
  return null;
}