Program: 30417
Project: 30417
Buggy source:
public void copyConfigFiles(Habitat habitat,File fromInstanceDir,File domainXml){
  ServerEnvironment se=habitat.getComponent(ServerEnvironment.class);
  if (!isEmbedded(se)) {
    return;
  }
  if ((fromInstanceDir == null) || (domainXml == null)) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  File toInstanceDir=habitat.getComponent(ServerEnvironmentImpl.class).getInstanceRoot();
  List<String> fileNames=new ArrayList<String>();
  try {
    fileNames.addAll(new EmbeddedSecurityUtil().new DomainXmlSecurityParser(domainXml).getAbsolutePathKeyFileNames(fromInstanceDir));
    String keyStoreFileName=fromInstanceDir + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str";
    String trustStoreFileName=fromInstanceDir + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str";
    fileNames.add(keyStoreFileName);
    fileNames.add(trustStoreFileName);
    String loginConf=fromInstanceDir + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str";
    String secPolicy=fromInstanceDir + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str";
    fileNames.add(loginConf);
    fileNames.add(secPolicy);
    File toConfigDir=new File(toInstanceDir,"String_Node_Str");
    if (!toConfigDir.exists()) {
      toConfigDir.mkdir();
    }
    for (    String fileName : fileNames) {
      FileUtils.copyFile(new File(fileName),new File(toConfigDir,parseFileName(fileName)));
    }
  }
 catch (  IOException e) {
    _logger.log(Level.WARNING,"String_Node_Str",e);
  }
catch (  XMLStreamException e) {
    _logger.log(Level.WARNING,"String_Node_Str",e);
  }
}

Fixed version (ground truth):
public void copyConfigFiles(Habitat habitat,File fromInstanceDir,File domainXml){
  ServerEnvironment se=habitat.getComponent(ServerEnvironment.class);
  if (!isEmbedded(se)) {
    return;
  }
  if ((fromInstanceDir == null) || (domainXml == null)) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  File toInstanceDir=habitat.getComponent(ServerEnvironmentImpl.class).getInstanceRoot();
  List<String> fileNames=new ArrayList<String>();
  try {
    fileNames.addAll(new EmbeddedSecurityUtil().new DomainXmlSecurityParser(domainXml).getAbsolutePathKeyFileNames(fromInstanceDir));
    String keyStoreFileName=fromInstanceDir + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str";
    String trustStoreFileName=fromInstanceDir + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str";
    fileNames.add(keyStoreFileName);
    fileNames.add(trustStoreFileName);
    String loginConf=fromInstanceDir + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str";
    String secPolicy=fromInstanceDir + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str";
    fileNames.add(loginConf);
    fileNames.add(secPolicy);
    File toConfigDir=new File(toInstanceDir,"String_Node_Str");
    if (!toConfigDir.exists()) {
      if (!toConfigDir.mkdir()) {
        throw new IOException();
      }
    }
    for (    String fileName : fileNames) {
      FileUtils.copyFile(new File(fileName),new File(toConfigDir,parseFileName(fileName)));
    }
  }
 catch (  IOException e) {
    _logger.log(Level.WARNING,"String_Node_Str",e);
  }
catch (  XMLStreamException e) {
    _logger.log(Level.WARNING,"String_Node_Str",e);
  }
}