Program: 106685
Project: 106685
Buggy source:
@Override public boolean configure(String name,Map<String,Object> params) throws ConfigurationException {
  _name=name;
  ComponentLocator locator=ComponentLocator.getCurrentLocator();
  ConfigurationDao configDao=locator.getDao(ConfigurationDao.class);
  if (configDao == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  final Map<String,String> configs=configDao.getConfiguration("String_Node_Str",params);
  _routerTemplateId=NumbersUtil.parseInt(configs.get("String_Node_Str"),1);
  String value=configDao.getValue(Config.PrimaryStorageDownloadWait.toString());
  _primaryStorageDownloadWait=NumbersUtil.parseInt(value,Integer.parseInt(Config.PrimaryStorageDownloadWait.getDefaultValue()));
  HostTemplateStatesSearch=_tmpltHostDao.createSearchBuilder();
  HostTemplateStatesSearch.and("String_Node_Str",HostTemplateStatesSearch.entity().getTemplateId(),SearchCriteria.Op.EQ);
  HostTemplateStatesSearch.and("String_Node_Str",HostTemplateStatesSearch.entity().getDownloadState(),SearchCriteria.Op.EQ);
  SearchBuilder<HostVO> HostSearch=_hostDao.createSearchBuilder();
  HostSearch.and("String_Node_Str",HostSearch.entity().getDataCenterId(),SearchCriteria.Op.EQ);
  HostTemplateStatesSearch.join("String_Node_Str",HostSearch,HostSearch.entity().getId(),HostTemplateStatesSearch.entity().getHostId(),JoinBuilder.JoinType.INNER);
  HostSearch.done();
  HostTemplateStatesSearch.done();
  _storagePoolMaxWaitSeconds=NumbersUtil.parseInt(configDao.getValue(Config.StoragePoolMaxWaitSeconds.key()),3600);
  _preloadExecutor=Executors.newFixedThreadPool(8,new NamedThreadFactory("String_Node_Str"));
  _swiftTemplateSyncExecutor=Executors.newScheduledThreadPool(1,new NamedThreadFactory("String_Node_Str"));
  return false;
}

Fixed version (ground truth):
@Override public boolean configure(String name,Map<String,Object> params) throws ConfigurationException {
  _name=name;
  ComponentLocator locator=ComponentLocator.getCurrentLocator();
  final Map<String,String> configs=_configDao.getConfiguration("String_Node_Str",params);
  _routerTemplateId=NumbersUtil.parseInt(configs.get("String_Node_Str"),1);
  String value=_configDao.getValue(Config.PrimaryStorageDownloadWait.toString());
  _primaryStorageDownloadWait=NumbersUtil.parseInt(value,Integer.parseInt(Config.PrimaryStorageDownloadWait.getDefaultValue()));
  HostTemplateStatesSearch=_tmpltHostDao.createSearchBuilder();
  HostTemplateStatesSearch.and("String_Node_Str",HostTemplateStatesSearch.entity().getTemplateId(),SearchCriteria.Op.EQ);
  HostTemplateStatesSearch.and("String_Node_Str",HostTemplateStatesSearch.entity().getDownloadState(),SearchCriteria.Op.EQ);
  SearchBuilder<HostVO> HostSearch=_hostDao.createSearchBuilder();
  HostSearch.and("String_Node_Str",HostSearch.entity().getDataCenterId(),SearchCriteria.Op.EQ);
  HostTemplateStatesSearch.join("String_Node_Str",HostSearch,HostSearch.entity().getId(),HostTemplateStatesSearch.entity().getHostId(),JoinBuilder.JoinType.INNER);
  HostSearch.done();
  HostTemplateStatesSearch.done();
  _storagePoolMaxWaitSeconds=NumbersUtil.parseInt(_configDao.getValue(Config.StoragePoolMaxWaitSeconds.key()),3600);
  _preloadExecutor=Executors.newFixedThreadPool(8,new NamedThreadFactory("String_Node_Str"));
  _swiftTemplateSyncExecutor=Executors.newScheduledThreadPool(1,new NamedThreadFactory("String_Node_Str"));
  return false;
}