Program: 28610
Project: 28610
Buggy source:
@Override public void postConstruct(){
  Config defaultConfig=configs.getConfigByName(DEFAULT_CONFIG);
  if (defaultConfig != null) {
    logger.log(Level.INFO,existingDefaultConfig);
    return;
  }
  String installRoot=System.getProperty(INSTALL_ROOT);
  if (installRoot == null) {
    logger.log(Level.INFO,installRootIsNull);
    return;
  }
  logger.log(Level.INFO,runningDefaultConfigUpgrade);
  InputStream template=null;
  try {
    template=getDomainXmlTemplate();
    ConfigSupport.apply(new MinDefaultConfigCode(),configs);
    defaultConfig=configs.getConfigByName(DEFAULT_CONFIG);
    createParser(template);
    createDefaultConfigAttr(defaultConfig);
    createHttpServiceConfig(defaultConfig);
    createAdminServiceConfig(defaultConfig);
    createLogServiceConfig(defaultConfig);
    createSecurityServiceConfig(defaultConfig);
    createJavaConfig(defaultConfig);
    createAvailabilityService(defaultConfig);
    createNetworkConfig(defaultConfig);
    createThreadPools(defaultConfig);
    createSystemProperties(defaultConfig);
  }
 catch (  TransactionFailure ex) {
    logger.log(Level.SEVERE,defaultConfigUpgradeFailure,ex);
  }
catch (  FileNotFoundException ex) {
    logger.log(Level.SEVERE,defaultConfigUpgradeFailure,ex);
  }
catch (  XMLStreamException ex) {
    logger.log(Level.SEVERE,defaultConfigUpgradeFailure,ex);
  }
 finally {
    try {
      if (parser != null) {
        parser.close();
      }
    }
 catch (    Exception e) {
    }
    try {
      if (reader != null) {
        reader.close();
      }
    }
 catch (    Exception e) {
    }
    try {
      if (template != null) {
        template.close();
      }
    }
 catch (    Exception e) {
    }
  }
}

Fixed version (ground truth):
@Override public void postConstruct(){
  Config defaultConfig=configs.getConfigByName(DEFAULT_CONFIG);
  if (defaultConfig != null) {
    logger.log(Level.INFO,existingDefaultConfig);
    return;
  }
  String installRoot=System.getProperty(INSTALL_ROOT);
  if (installRoot == null) {
    logger.log(Level.INFO,installRootIsNull);
    return;
  }
  logger.log(Level.INFO,runningDefaultConfigUpgrade);
  InputStream template=null;
  ZipFile templatezip=null;
  String templatefilename=Version.getDefaultDomainTemplate();
  File templatefile=new File(new File(new File(new File(installRoot,"String_Node_Str"),"String_Node_Str"),"String_Node_Str"),templatefilename);
  try {
    templatezip=new ZipFile(templatefile);
    ZipEntry domEnt=templatezip.getEntry("String_Node_Str");
    if (domEnt == null) {
      throw new RuntimeException(localStrings.getLocalString("String_Node_Str","String_Node_Str",templatefile.getAbsolutePath()));
    }
    template=templatezip.getInputStream(domEnt);
    ConfigSupport.apply(new MinDefaultConfigCode(),configs);
    defaultConfig=configs.getConfigByName(DEFAULT_CONFIG);
    createParser(template);
    createDefaultConfigAttr(defaultConfig);
    createHttpServiceConfig(defaultConfig);
    createAdminServiceConfig(defaultConfig);
    createLogServiceConfig(defaultConfig);
    createSecurityServiceConfig(defaultConfig);
    createJavaConfig(defaultConfig);
    createAvailabilityService(defaultConfig);
    createNetworkConfig(defaultConfig);
    createThreadPools(defaultConfig);
    createSystemProperties(defaultConfig);
  }
 catch (  TransactionFailure ex) {
    logger.log(Level.SEVERE,defaultConfigUpgradeFailure,ex);
  }
catch (  FileNotFoundException ex) {
    logger.log(Level.SEVERE,defaultConfigUpgradeFailure,ex);
  }
catch (  XMLStreamException ex) {
    logger.log(Level.SEVERE,defaultConfigUpgradeFailure,ex);
  }
catch (  IOException ex) {
    throw new RuntimeException(localStrings.getLocalString("String_Node_Str","String_Node_Str",templatefile.getAbsolutePath()),ex);
  }
 finally {
    try {
      if (parser != null) {
        parser.close();
      }
    }
 catch (    Exception e) {
    }
    try {
      if (reader != null) {
        reader.close();
      }
    }
 catch (    Exception e) {
    }
    try {
      if (template != null) {
        template.close();
      }
    }
 catch (    Exception e) {
    }
    try {
      if (templatezip != null) {
        templatezip.close();
      }
    }
 catch (    Exception e) {
    }
  }
}