Program: 60541
Project: 60541
Buggy source:
@PreAuthorize("String_Node_Str") @RequestMapping(method=RequestMethod.GET,value="String_Node_Str") @Transactional(readOnly=true) public List<ConnBundleTO> getBundles(@RequestParam(value="String_Node_Str",required=false) final String lang){
  if (StringUtils.isBlank(lang)) {
    CurrentLocale.set(Locale.ENGLISH);
  }
 else {
    CurrentLocale.set(new Locale(lang));
  }
  List<ConnBundleTO> connectorBundleTOs=new ArrayList<ConnBundleTO>();
  for (  Map.Entry<String,List<ConnectorInfo>> entry : ConnIdBundleManager.getConnectorInfos().entrySet()) {
    for (    ConnectorInfo bundle : entry.getValue()) {
      ConnBundleTO connBundleTO=new ConnBundleTO();
      connBundleTO.setDisplayName(bundle.getConnectorDisplayName());
      connBundleTO.setLocation(entry.getKey());
      ConnectorKey key=bundle.getConnectorKey();
      connBundleTO.setBundleName(key.getBundleName());
      connBundleTO.setConnectorName(key.getConnectorName());
      connBundleTO.setVersion(key.getBundleVersion());
      ConfigurationProperties properties=ConnIdBundleManager.getConfigurationProperties(bundle);
      for (      String propName : properties.getPropertyNames()) {
        ConfigurationProperty configurationProperty=properties.getProperty(propName);
        ConnConfPropSchema connConfPropSchema=new ConnConfPropSchema();
        connConfPropSchema.setName(configurationProperty.getName());
        connConfPropSchema.setDisplayName(configurationProperty.getDisplayName(propName));
        connConfPropSchema.setHelpMessage(configurationProperty.getHelpMessage(propName));
        connConfPropSchema.setRequired(configurationProperty.isRequired());
        connConfPropSchema.setType(configurationProperty.getType().getName());
        connConfPropSchema.setOrder(((ConfigurationPropertyImpl)configurationProperty).getOrder());
        connConfPropSchema.setConfidential(configurationProperty.isConfidential());
        connConfPropSchema.setDefaultValue(configurationProperty.getValue());
        connBundleTO.addProperty(connConfPropSchema);
      }
      LOG.debug("String_Node_Str",connBundleTO);
      connectorBundleTOs.add(connBundleTO);
    }
  }
  return connectorBundleTOs;
}

Fixed version (ground truth):
@PreAuthorize("String_Node_Str") @RequestMapping(method=RequestMethod.GET,value="String_Node_Str") @Transactional(readOnly=true) public List<ConnBundleTO> getBundles(@RequestParam(value="String_Node_Str",required=false) final String lang){
  if (StringUtils.isBlank(lang)) {
    CurrentLocale.set(Locale.ENGLISH);
  }
 else {
    CurrentLocale.set(new Locale(lang));
  }
  List<ConnBundleTO> connectorBundleTOs=new ArrayList<ConnBundleTO>();
  for (  Map.Entry<String,List<ConnectorInfo>> entry : ConnIdBundleManager.getConnectorInfos().entrySet()) {
    for (    ConnectorInfo bundle : entry.getValue()) {
      ConnBundleTO connBundleTO=new ConnBundleTO();
      connBundleTO.setDisplayName(bundle.getConnectorDisplayName());
      connBundleTO.setLocation(entry.getKey());
      ConnectorKey key=bundle.getConnectorKey();
      connBundleTO.setBundleName(key.getBundleName());
      connBundleTO.setConnectorName(key.getConnectorName());
      connBundleTO.setVersion(key.getBundleVersion());
      ConfigurationProperties properties=ConnIdBundleManager.getConfigurationProperties(bundle);
      for (      String propName : properties.getPropertyNames()) {
        connBundleTO.addProperty(binder.buildConnConfPropSchema(properties.getProperty(propName)));
      }
      LOG.debug("String_Node_Str",connBundleTO);
      connectorBundleTOs.add(connBundleTO);
    }
  }
  return connectorBundleTOs;
}