Program: 106093
Project: 106093
Buggy source:
/** 
 * We build the path to where the keystore holding the WS-Security X509 certificates are stored.
 */
@Override public void init(ServletConfig config) throws ServletException {
  SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this,config.getServletContext());
  File propertiesFile=ConfigurationHelper.findConfigurationFile("String_Node_Str");
  Properties EC2Prop=null;
  if (null != propertiesFile) {
    logger.info("String_Node_Str" + propertiesFile.getAbsolutePath());
    EC2Prop=new Properties();
    try {
      EC2Prop.load(new FileInputStream(propertiesFile));
    }
 catch (    FileNotFoundException e) {
      logger.warn("String_Node_Str" + propertiesFile.getAbsolutePath(),e);
    }
catch (    IOException e) {
      logger.warn("String_Node_Str" + propertiesFile.getAbsolutePath(),e);
    }
    String keystore=EC2Prop.getProperty("String_Node_Str");
    keystorePassword=EC2Prop.getProperty("String_Node_Str");
    wsdlVersion=EC2Prop.getProperty("String_Node_Str","String_Node_Str");
    version=EC2Prop.getProperty("String_Node_Str","String_Node_Str");
    String installedPath=System.getenv("String_Node_Str");
    if (installedPath == null)     installedPath=System.getenv("String_Node_Str");
    if (installedPath == null)     installedPath=System.getProperty("String_Node_Str");
    String webappPath=config.getServletContext().getRealPath("String_Node_Str");
    pathToKeystore=new String(webappPath + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ keystore);
  }
}

Fixed version (ground truth):
/** 
 * We build the path to where the keystore holding the WS-Security X509 certificates are stored.
 */
@Override public void init(ServletConfig config) throws ServletException {
  SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this,config.getServletContext());
  File propertiesFile=ConfigurationHelper.findConfigurationFile("String_Node_Str");
  Properties EC2Prop=null;
  if (null != propertiesFile) {
    logger.info("String_Node_Str" + propertiesFile.getAbsolutePath());
    EC2Prop=new Properties();
    FileInputStream ec2PropFile=null;
    try {
      ec2PropFile=new FileInputStream(propertiesFile);
      EC2Prop.load(ec2PropFile);
    }
 catch (    FileNotFoundException e) {
      logger.warn("String_Node_Str" + propertiesFile.getAbsolutePath(),e);
    }
catch (    IOException e) {
      logger.warn("String_Node_Str" + propertiesFile.getAbsolutePath(),e);
    }
 finally {
      IOUtils.closeQuietly(ec2PropFile);
    }
    String keystore=EC2Prop.getProperty("String_Node_Str");
    keystorePassword=EC2Prop.getProperty("String_Node_Str");
    wsdlVersion=EC2Prop.getProperty("String_Node_Str","String_Node_Str");
    version=EC2Prop.getProperty("String_Node_Str","String_Node_Str");
    String installedPath=System.getenv("String_Node_Str");
    if (installedPath == null)     installedPath=System.getenv("String_Node_Str");
    if (installedPath == null)     installedPath=System.getProperty("String_Node_Str");
    String webappPath=config.getServletContext().getRealPath("String_Node_Str");
    pathToKeystore=new String(webappPath + File.separator + "String_Node_Str"+ File.separator+ "String_Node_Str"+ File.separator+ keystore);
  }
}