Program: 106465
Project: 106465
Buggy source:
@Override public boolean configure(String name,Map<String,Object> params) throws ConfigurationException {
}

Fixed version (ground truth):
@Override public boolean configure(String name,Map<String,Object> params) throws ConfigurationException {
  boolean success=super.configure(name,params);
  if (!success) {
    return false;
  }
  try {
    Class<?> clazz=Class.forName("String_Node_Str");
    _storage=(StorageLayer)ComponentLocator.inject(clazz);
    _storage.configure("String_Node_Str",params);
  }
 catch (  ClassNotFoundException e) {
    throw new ConfigurationException("String_Node_Str" + "String_Node_Str");
  }
  String domrScriptsDir=(String)params.get("String_Node_Str");
  if (domrScriptsDir == null) {
    domrScriptsDir=getDefaultDomrScriptsDir();
  }
  String kvmScriptsDir=(String)params.get("String_Node_Str");
  if (kvmScriptsDir == null) {
    kvmScriptsDir=getDefaultKvmScriptsDir();
  }
  String networkScriptsDir=(String)params.get("String_Node_Str");
  if (networkScriptsDir == null) {
    networkScriptsDir=getDefaultNetworkScriptsDir();
  }
  String storageScriptsDir=(String)params.get("String_Node_Str");
  if (storageScriptsDir == null) {
    storageScriptsDir=getDefaultStorageScriptsDir();
  }
  params.put("String_Node_Str",domrScriptsDir);
  _virtRouterResource=new VirtualRoutingResource();
  success=_virtRouterResource.configure(name,params);
  if (!success) {
    return false;
  }
  _host=(String)params.get("String_Node_Str");
  if (_host == null) {
    _host="String_Node_Str";
  }
  _dcId=(String)params.get("String_Node_Str");
  if (_dcId == null) {
    _dcId="String_Node_Str";
  }
  _pod=(String)params.get("String_Node_Str");
  if (_pod == null) {
    _pod="String_Node_Str";
  }
  _clusterId=(String)params.get("String_Node_Str");
  _modifyVlanPath=Script.findScript(networkScriptsDir,"String_Node_Str");
  if (_modifyVlanPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _versionstringpath=Script.findScript(kvmScriptsDir,"String_Node_Str");
  if (_versionstringpath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _patchdomrPath=Script.findScript(kvmScriptsDir + "String_Node_Str","String_Node_Str");
  if (_patchdomrPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _heartBeatPath=Script.findScript(kvmScriptsDir,"String_Node_Str");
  if (_heartBeatPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _createvmPath=Script.findScript(storageScriptsDir,"String_Node_Str");
  if (_createvmPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _manageSnapshotPath=Script.findScript(storageScriptsDir,"String_Node_Str");
  if (_manageSnapshotPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _createTmplPath=Script.findScript(storageScriptsDir,"String_Node_Str");
  if (_createTmplPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _securityGroupPath=Script.findScript(networkScriptsDir,"String_Node_Str");
  if (_securityGroupPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _networkUsagePath=Script.findScript("String_Node_Str","String_Node_Str");
  if (_networkUsagePath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  String value=(String)params.get("String_Node_Str");
  boolean isDeveloper=Boolean.parseBoolean(value);
  if (isDeveloper) {
    params.putAll(getDeveloperProperties());
  }
  _pool=(String)params.get("String_Node_Str");
  if (_pool == null) {
    _pool="String_Node_Str";
  }
  String instance=(String)params.get("String_Node_Str");
  _hypervisorType=(String)params.get("String_Node_Str");
  if (_hypervisorType == null) {
    _hypervisorType="String_Node_Str";
  }
  _hypervisorURI=(String)params.get("String_Node_Str");
  if (_hypervisorURI == null) {
    _hypervisorURI="String_Node_Str";
  }
  String startMac=(String)params.get("String_Node_Str");
  if (startMac == null) {
    startMac="String_Node_Str";
  }
  String startIp=(String)params.get("String_Node_Str");
  if (startIp == null) {
    startIp="String_Node_Str";
  }
  _pingTestPath=Script.findScript(kvmScriptsDir,"String_Node_Str");
  if (_pingTestPath == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  _linkLocalBridgeName=(String)params.get("String_Node_Str");
  if (_linkLocalBridgeName == null) {
    if (isDeveloper) {
      _linkLocalBridgeName="String_Node_Str" + instance + "String_Node_Str";
    }
 else {
      _linkLocalBridgeName="String_Node_Str";
    }
  }
  _publicBridgeName=(String)params.get("String_Node_Str");
  if (_publicBridgeName == null) {
    _publicBridgeName="String_Node_Str";
  }
  _privBridgeName=(String)params.get("String_Node_Str");
  if (_privBridgeName == null) {
    _privBridgeName="String_Node_Str";
  }
  _guestBridgeName=(String)params.get("String_Node_Str");
  if (_guestBridgeName == null) {
    _guestBridgeName=_privBridgeName;
  }
  _privNwName=(String)params.get("String_Node_Str");
  if (_privNwName == null) {
    if (isDeveloper) {
      _privNwName="String_Node_Str" + instance + "String_Node_Str";
    }
 else {
      _privNwName="String_Node_Str";
    }
  }
  _localStoragePath=(String)params.get("String_Node_Str");
  if (_localStoragePath == null) {
    _localStoragePath="String_Node_Str";
  }
  _localStorageUUID=(String)params.get("String_Node_Str");
  if (_localStorageUUID == null) {
    throw new ConfigurationException("String_Node_Str");
  }
  value=(String)params.get("String_Node_Str");
  _timeout=NumbersUtil.parseInt(value,30 * 60) * 1000;
  value=(String)params.get("String_Node_Str");
  _stopTimeout=NumbersUtil.parseInt(value,120) * 1000;
  value=(String)params.get("String_Node_Str");
  _cmdsTimeout=NumbersUtil.parseInt(value,7200) * 1000;
  value=(String)params.get("String_Node_Str");
  _dom0MinMem=NumbersUtil.parseInt(value,0) * 1024 * 1024;
  LibvirtConnection.initialize(_hypervisorURI);
  Connect conn=null;
  try {
    conn=LibvirtConnection.getConnection();
  }
 catch (  LibvirtException e) {
    throw new CloudRuntimeException(e.getMessage());
  }
  if (!IsHVMEnabled(conn)) {
    throw new ConfigurationException("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
  }
  _hypervisorPath=getHypervisorPath(conn);
  try {
    _hvVersion=conn.getVersion();
    _hvVersion=(_hvVersion % 1000000) / 1000;
  }
 catch (  LibvirtException e) {
  }
  String[] info=NetUtils.getNetworkParams(_privateNic);
  _monitor=new KVMHAMonitor(null,info[0],_heartBeatPath);
  Thread ha=new Thread(_monitor);
  ha.start();
  _storagePoolMgr=new KVMStoragePoolManager(_storage,_monitor);
  _sysvmISOPath=(String)params.get("String_Node_Str");
  if (_sysvmISOPath == null) {
    String[] isoPaths={"String_Node_Str","String_Node_Str"};
    for (    String isoPath : isoPaths) {
      if (_storage.exists(isoPath)) {
        _sysvmISOPath=isoPath;
        break;
      }
    }
    if (_sysvmISOPath == null) {
      s_logger.debug("String_Node_Str");
    }
  }
  try {
    createControlNetwork();
  }
 catch (  LibvirtException e) {
    throw new ConfigurationException(e.getMessage());
  }
  _pifs=getPifs();
  if (_pifs.first() == null) {
    s_logger.debug("String_Node_Str");
    throw new ConfigurationException("String_Node_Str");
  }
  if (_pifs.second() == null) {
    s_logger.debug("String_Node_Str");
    throw new ConfigurationException("String_Node_Str");
  }
  s_logger.debug("String_Node_Str" + _pifs.first() + "String_Node_Str"+ _privBridgeName+ "String_Node_Str"+ _pifs.second()+ "String_Node_Str"+ _publicBridgeName);
  _can_bridge_firewall=can_bridge_firewall(_pifs.second());
  _localGateway=Script.runSimpleBashScript("String_Node_Str");
  if (_localGateway == null) {
    s_logger.debug("String_Node_Str");
  }
  _mountPoint=(String)params.get("String_Node_Str");
  if (_mountPoint == null) {
    _mountPoint="String_Node_Str";
  }
  value=(String)params.get("String_Node_Str");
  _migrateSpeed=NumbersUtil.parseInt(value,-1);
  if (_migrateSpeed == -1) {
    _migrateSpeed=0;
    String speed=Script.runSimpleBashScript("String_Node_Str" + _pifs.second() + "String_Node_Str");
    if (speed != null) {
      String[] tokens=speed.split("String_Node_Str");
      if (tokens.length == 2) {
        try {
          _migrateSpeed=Integer.parseInt(tokens[0]);
        }
 catch (        Exception e) {
        }
        s_logger.debug("String_Node_Str" + _pifs.second() + "String_Node_Str"+ String.valueOf(_migrateSpeed));
      }
    }
    params.put("String_Node_Str",String.valueOf(_migrateSpeed));
  }
  return true;
}