Program: 61079
Project: 61079
Buggy source:
@PreAuthorize("String_Node_Str") @RequestMapping(method=RequestMethod.GET,value="String_Node_Str") public List<ConnBundleTO> getBundles() throws NotFoundException, MissingConfKeyException {
  ConnectorInfoManager manager=connInstanceLoader.getConnectorManager();
  List<ConnectorInfo> bundles=manager.getConnectorInfos();
  if (LOG.isDebugEnabled() && bundles != null) {
    LOG.debug("String_Node_Str",bundles.size());
    for (    ConnectorInfo bundle : bundles) {
      LOG.debug("String_Node_Str",bundle.getConnectorDisplayName());
    }
  }
  ConnBundleTO connectorBundleTO;
  ConnectorKey key;
  ConfigurationProperties properties;
  List<ConnBundleTO> connectorBundleTOs=new ArrayList<ConnBundleTO>();
  if (bundles != null) {
    for (    ConnectorInfo bundle : bundles) {
      connectorBundleTO=new ConnBundleTO();
      connectorBundleTO.setDisplayName(bundle.getConnectorDisplayName());
      key=bundle.getConnectorKey();
      LOG.debug("String_Node_Str" + "String_Node_Str" + "String_Node_Str",new Object[]{key.getBundleName(),key.getBundleVersion(),key.getConnectorName()});
      connectorBundleTO.setBundleName(key.getBundleName());
      connectorBundleTO.setConnectorName(key.getConnectorName());
      connectorBundleTO.setVersion(key.getBundleVersion());
      properties=bundle.createDefaultAPIConfiguration().getConfigurationProperties();
      ConnConfPropSchema connConfPropSchema;
      for (      String propName : properties.getPropertyNames()) {
        connConfPropSchema=new ConnConfPropSchema();
        connConfPropSchema.setName(propName);
        connConfPropSchema.setRequired(properties.getProperty(propName).isRequired());
        connConfPropSchema.setType(properties.getProperty(propName).getType().getName());
        connectorBundleTO.addProperty(connConfPropSchema);
      }
      LOG.debug("String_Node_Str",connectorBundleTO.getProperties());
      connectorBundleTOs.add(connectorBundleTO);
    }
  }
  return connectorBundleTOs;
}

Fixed version (ground truth):
@PreAuthorize("String_Node_Str") @RequestMapping(method=RequestMethod.GET,value="String_Node_Str") public List<ConnBundleTO> getBundles() throws NotFoundException, MissingConfKeyException {
  ConnectorInfoManager manager=connInstanceLoader.getConnectorManager();
  List<ConnectorInfo> bundles=manager.getConnectorInfos();
  if (LOG.isDebugEnabled() && bundles != null) {
    LOG.debug("String_Node_Str",bundles.size());
    for (    ConnectorInfo bundle : bundles) {
      LOG.debug("String_Node_Str",bundle.getConnectorDisplayName());
    }
  }
  ConnBundleTO connectorBundleTO;
  ConnectorKey key;
  ConfigurationProperties properties;
  List<ConnBundleTO> connectorBundleTOs=new ArrayList<ConnBundleTO>();
  if (bundles != null) {
    for (    ConnectorInfo bundle : bundles) {
      connectorBundleTO=new ConnBundleTO();
      connectorBundleTO.setDisplayName(bundle.getConnectorDisplayName());
      key=bundle.getConnectorKey();
      LOG.debug("String_Node_Str" + "String_Node_Str" + "String_Node_Str",new Object[]{key.getBundleName(),key.getBundleVersion(),key.getConnectorName()});
      connectorBundleTO.setBundleName(key.getBundleName());
      connectorBundleTO.setConnectorName(key.getConnectorName());
      connectorBundleTO.setVersion(key.getBundleVersion());
      properties=bundle.createDefaultAPIConfiguration().getConfigurationProperties();
      ConnConfPropSchema connConfPropSchema;
      ConfigurationProperty configurationProperty;
      for (      String propName : properties.getPropertyNames()) {
        connConfPropSchema=new ConnConfPropSchema();
        configurationProperty=properties.getProperty(propName);
        connConfPropSchema.setName(configurationProperty.getName());
        connConfPropSchema.setDisplayName(configurationProperty.getDisplayName(propName));
        connConfPropSchema.setHelpMessage(configurationProperty.getHelpMessage(propName));
        connConfPropSchema.setRequired(configurationProperty.isRequired());
        connConfPropSchema.setType(configurationProperty.getType().getName());
        connectorBundleTO.addProperty(connConfPropSchema);
      }
      LOG.debug("String_Node_Str",connectorBundleTO.getProperties());
      connectorBundleTOs.add(connectorBundleTO);
    }
  }
  return connectorBundleTOs;
}