Program: 106959
Project: 106959
Buggy source:
@Override public Answer executeRequest(Command cmd){
  if (cmd instanceof CreateCommand) {
    return execute((CreateCommand)cmd);
  }
 else   if (cmd instanceof SetPortForwardingRulesCommand) {
    return execute((SetPortForwardingRulesCommand)cmd);
  }
 else   if (cmd instanceof SetStaticNatRulesCommand) {
    return execute((SetStaticNatRulesCommand)cmd);
  }
 else   if (cmd instanceof LoadBalancerConfigCommand) {
    return execute((LoadBalancerConfigCommand)cmd);
  }
 else   if (cmd instanceof IPAssocCommand) {
    return execute((IPAssocCommand)cmd);
  }
 else   if (cmd instanceof CheckConsoleProxyLoadCommand) {
    return execute((CheckConsoleProxyLoadCommand)cmd);
  }
 else   if (cmd instanceof WatchConsoleProxyLoadCommand) {
    return execute((WatchConsoleProxyLoadCommand)cmd);
  }
 else   if (cmd instanceof SavePasswordCommand) {
    return execute((SavePasswordCommand)cmd);
  }
 else   if (cmd instanceof DhcpEntryCommand) {
    return execute((DhcpEntryCommand)cmd);
  }
 else   if (cmd instanceof VmDataCommand) {
    return execute((VmDataCommand)cmd);
  }
 else   if (cmd instanceof ReadyCommand) {
    return execute((ReadyCommand)cmd);
  }
 else   if (cmd instanceof GetHostStatsCommand) {
    return execute((GetHostStatsCommand)cmd);
  }
 else   if (cmd instanceof GetVmStatsCommand) {
    return execute((GetVmStatsCommand)cmd);
  }
 else   if (cmd instanceof CheckHealthCommand) {
    return execute((CheckHealthCommand)cmd);
  }
 else   if (cmd instanceof StopCommand) {
    return execute((StopCommand)cmd);
  }
 else   if (cmd instanceof RebootRouterCommand) {
    return execute((RebootRouterCommand)cmd);
  }
 else   if (cmd instanceof RebootCommand) {
    return execute((RebootCommand)cmd);
  }
 else   if (cmd instanceof CheckVirtualMachineCommand) {
    return execute((CheckVirtualMachineCommand)cmd);
  }
 else   if (cmd instanceof PrepareForMigrationCommand) {
    return execute((PrepareForMigrationCommand)cmd);
  }
 else   if (cmd instanceof MigrateCommand) {
    return execute((MigrateCommand)cmd);
  }
 else   if (cmd instanceof DestroyCommand) {
    return execute((DestroyCommand)cmd);
  }
 else   if (cmd instanceof CreateStoragePoolCommand) {
    return execute((CreateStoragePoolCommand)cmd);
  }
 else   if (cmd instanceof ModifyStoragePoolCommand) {
    return execute((ModifyStoragePoolCommand)cmd);
  }
 else   if (cmd instanceof DeleteStoragePoolCommand) {
    return execute((DeleteStoragePoolCommand)cmd);
  }
 else   if (cmd instanceof CopyVolumeCommand) {
    return execute((CopyVolumeCommand)cmd);
  }
 else   if (cmd instanceof AttachVolumeCommand) {
    return execute((AttachVolumeCommand)cmd);
  }
 else   if (cmd instanceof AttachIsoCommand) {
    return execute((AttachIsoCommand)cmd);
  }
 else   if (cmd instanceof ManageSnapshotCommand) {
    return execute((ManageSnapshotCommand)cmd);
  }
 else   if (cmd instanceof BackupSnapshotCommand) {
    return execute((BackupSnapshotCommand)cmd);
  }
 else   if (cmd instanceof DeleteSnapshotBackupCommand) {
    return execute((DeleteSnapshotBackupCommand)cmd);
  }
 else   if (cmd instanceof CreateVolumeFromSnapshotCommand) {
    return execute((CreateVolumeFromSnapshotCommand)cmd);
  }
 else   if (cmd instanceof DeleteSnapshotsDirCommand) {
    return execute((DeleteSnapshotsDirCommand)cmd);
  }
 else   if (cmd instanceof CreatePrivateTemplateFromVolumeCommand) {
    return execute((CreatePrivateTemplateFromVolumeCommand)cmd);
  }
 else   if (cmd instanceof CreatePrivateTemplateFromSnapshotCommand) {
    return execute((CreatePrivateTemplateFromSnapshotCommand)cmd);
  }
 else   if (cmd instanceof UpgradeSnapshotCommand) {
    return execute((UpgradeSnapshotCommand)cmd);
  }
 else   if (cmd instanceof GetStorageStatsCommand) {
    return execute((GetStorageStatsCommand)cmd);
  }
 else   if (cmd instanceof PrimaryStorageDownloadCommand) {
    return execute((PrimaryStorageDownloadCommand)cmd);
  }
 else   if (cmd instanceof GetVncPortCommand) {
    return execute((GetVncPortCommand)cmd);
  }
 else   if (cmd instanceof SetupCommand) {
    return execute((SetupCommand)cmd);
  }
 else   if (cmd instanceof MaintainCommand) {
    return execute((MaintainCommand)cmd);
  }
 else   if (cmd instanceof PingTestCommand) {
    return execute((PingTestCommand)cmd);
  }
 else   if (cmd instanceof CheckOnHostCommand) {
    return execute((CheckOnHostCommand)cmd);
  }
 else   if (cmd instanceof ModifySshKeysCommand) {
    return execute((ModifySshKeysCommand)cmd);
  }
 else   if (cmd instanceof PoolEjectCommand) {
    return execute((PoolEjectCommand)cmd);
  }
 else   if (cmd instanceof StartCommand) {
    return execute((StartCommand)cmd);
  }
 else   if (cmd instanceof RemoteAccessVpnCfgCommand) {
    return execute((RemoteAccessVpnCfgCommand)cmd);
  }
 else   if (cmd instanceof VpnUsersCfgCommand) {
    return execute((VpnUsersCfgCommand)cmd);
  }
 else   if (cmd instanceof CheckSshCommand) {
    return execute((CheckSshCommand)cmd);
  }
 else   if (cmd instanceof SecurityIngressRulesCmd) {
    return execute((SecurityIngressRulesCmd)cmd);
  }
 else   if (cmd instanceof OvsCreateGreTunnelCommand) {
    return execute((OvsCreateGreTunnelCommand)cmd);
  }
 else   if (cmd instanceof OvsSetTagAndFlowCommand) {
    return execute((OvsSetTagAndFlowCommand)cmd);
  }
 else   if (cmd instanceof OvsDeleteFlowCommand) {
    return execute((OvsDeleteFlowCommand)cmd);
  }
 else   if (cmd instanceof CleanupNetworkRulesCmd) {
    return execute((CleanupNetworkRulesCmd)cmd);
  }
 else   if (cmd instanceof NetworkRulesSystemVmCommand) {
    return execute((NetworkRulesSystemVmCommand)cmd);
  }
 else   if (cmd instanceof OvsCreateTunnelCommand) {
    return execute((OvsCreateTunnelCommand)cmd);
  }
 else   if (cmd instanceof OvsDestroyTunnelCommand) {
    return execute((OvsDestroyTunnelCommand)cmd);
  }
 else   if (cmd instanceof UpdateHostPasswordCommand) {
    return execute((UpdateHostPasswordCommand)cmd);
  }
 else {
    return Answer.createUnsupportedCommandAnswer(cmd);
  }
}

Fixed version (ground truth):
@Override public Answer executeRequest(Command cmd){
  Class<? extends Command> clazz=cmd.getClass();
  if (clazz == CreateCommand.class) {
    return execute((CreateCommand)cmd);
  }
 else   if (clazz == SetPortForwardingRulesCommand.class) {
    return execute((SetPortForwardingRulesCommand)cmd);
  }
 else   if (clazz == SetStaticNatRulesCommand.class) {
    return execute((SetStaticNatRulesCommand)cmd);
  }
 else   if (clazz == LoadBalancerConfigCommand.class) {
    return execute((LoadBalancerConfigCommand)cmd);
  }
 else   if (clazz == IPAssocCommand.class) {
    return execute((IPAssocCommand)cmd);
  }
 else   if (clazz == CheckConsoleProxyLoadCommand.class) {
    return execute((CheckConsoleProxyLoadCommand)cmd);
  }
 else   if (clazz == WatchConsoleProxyLoadCommand.class) {
    return execute((WatchConsoleProxyLoadCommand)cmd);
  }
 else   if (clazz == SavePasswordCommand.class) {
    return execute((SavePasswordCommand)cmd);
  }
 else   if (clazz == DhcpEntryCommand.class) {
    return execute((DhcpEntryCommand)cmd);
  }
 else   if (clazz == VmDataCommand.class) {
    return execute((VmDataCommand)cmd);
  }
 else   if (clazz == ReadyCommand.class) {
    return execute((ReadyCommand)cmd);
  }
 else   if (clazz == GetHostStatsCommand.class) {
    return execute((GetHostStatsCommand)cmd);
  }
 else   if (clazz == GetVmStatsCommand.class) {
    return execute((GetVmStatsCommand)cmd);
  }
 else   if (clazz == CheckHealthCommand.class) {
    return execute((CheckHealthCommand)cmd);
  }
 else   if (clazz == StopCommand.class) {
    return execute((StopCommand)cmd);
  }
 else   if (clazz == RebootRouterCommand.class) {
    return execute((RebootRouterCommand)cmd);
  }
 else   if (clazz == RebootCommand.class) {
    return execute((RebootCommand)cmd);
  }
 else   if (clazz == CheckVirtualMachineCommand.class) {
    return execute((CheckVirtualMachineCommand)cmd);
  }
 else   if (clazz == PrepareForMigrationCommand.class) {
    return execute((PrepareForMigrationCommand)cmd);
  }
 else   if (clazz == MigrateCommand.class) {
    return execute((MigrateCommand)cmd);
  }
 else   if (clazz == DestroyCommand.class) {
    return execute((DestroyCommand)cmd);
  }
 else   if (clazz == CreateStoragePoolCommand.class) {
    return execute((CreateStoragePoolCommand)cmd);
  }
 else   if (clazz == ModifyStoragePoolCommand.class) {
    return execute((ModifyStoragePoolCommand)cmd);
  }
 else   if (clazz == DeleteStoragePoolCommand.class) {
    return execute((DeleteStoragePoolCommand)cmd);
  }
 else   if (clazz == CopyVolumeCommand.class) {
    return execute((CopyVolumeCommand)cmd);
  }
 else   if (clazz == AttachVolumeCommand.class) {
    return execute((AttachVolumeCommand)cmd);
  }
 else   if (clazz == AttachIsoCommand.class) {
    return execute((AttachIsoCommand)cmd);
  }
 else   if (clazz == ManageSnapshotCommand.class) {
    return execute((ManageSnapshotCommand)cmd);
  }
 else   if (clazz == BackupSnapshotCommand.class) {
    return execute((BackupSnapshotCommand)cmd);
  }
 else   if (clazz == DeleteSnapshotBackupCommand.class) {
    return execute((DeleteSnapshotBackupCommand)cmd);
  }
 else   if (clazz == CreateVolumeFromSnapshotCommand.class) {
    return execute((CreateVolumeFromSnapshotCommand)cmd);
  }
 else   if (clazz == DeleteSnapshotsDirCommand.class) {
    return execute((DeleteSnapshotsDirCommand)cmd);
  }
 else   if (clazz == CreatePrivateTemplateFromVolumeCommand.class) {
    return execute((CreatePrivateTemplateFromVolumeCommand)cmd);
  }
 else   if (clazz == CreatePrivateTemplateFromSnapshotCommand.class) {
    return execute((CreatePrivateTemplateFromSnapshotCommand)cmd);
  }
 else   if (clazz == UpgradeSnapshotCommand.class) {
    return execute((UpgradeSnapshotCommand)cmd);
  }
 else   if (clazz == GetStorageStatsCommand.class) {
    return execute((GetStorageStatsCommand)cmd);
  }
 else   if (clazz == PrimaryStorageDownloadCommand.class) {
    return execute((PrimaryStorageDownloadCommand)cmd);
  }
 else   if (clazz == GetVncPortCommand.class) {
    return execute((GetVncPortCommand)cmd);
  }
 else   if (clazz == SetupCommand.class) {
    return execute((SetupCommand)cmd);
  }
 else   if (clazz == MaintainCommand.class) {
    return execute((MaintainCommand)cmd);
  }
 else   if (clazz == PingTestCommand.class) {
    return execute((PingTestCommand)cmd);
  }
 else   if (clazz == CheckOnHostCommand.class) {
    return execute((CheckOnHostCommand)cmd);
  }
 else   if (clazz == ModifySshKeysCommand.class) {
    return execute((ModifySshKeysCommand)cmd);
  }
 else   if (clazz == PoolEjectCommand.class) {
    return execute((PoolEjectCommand)cmd);
  }
 else   if (clazz == StartCommand.class) {
    return execute((StartCommand)cmd);
  }
 else   if (clazz == RemoteAccessVpnCfgCommand.class) {
    return execute((RemoteAccessVpnCfgCommand)cmd);
  }
 else   if (clazz == VpnUsersCfgCommand.class) {
    return execute((VpnUsersCfgCommand)cmd);
  }
 else   if (clazz == CheckSshCommand.class) {
    return execute((CheckSshCommand)cmd);
  }
 else   if (clazz == SecurityIngressRulesCmd.class) {
    return execute((SecurityIngressRulesCmd)cmd);
  }
 else   if (clazz == OvsCreateGreTunnelCommand.class) {
    return execute((OvsCreateGreTunnelCommand)cmd);
  }
 else   if (clazz == OvsSetTagAndFlowCommand.class) {
    return execute((OvsSetTagAndFlowCommand)cmd);
  }
 else   if (clazz == OvsDeleteFlowCommand.class) {
    return execute((OvsDeleteFlowCommand)cmd);
  }
 else   if (clazz == CleanupNetworkRulesCmd.class) {
    return execute((CleanupNetworkRulesCmd)cmd);
  }
 else   if (clazz == NetworkRulesSystemVmCommand.class) {
    return execute((NetworkRulesSystemVmCommand)cmd);
  }
 else   if (clazz == OvsCreateTunnelCommand.class) {
    return execute((OvsCreateTunnelCommand)cmd);
  }
 else   if (clazz == OvsDestroyTunnelCommand.class) {
    return execute((OvsDestroyTunnelCommand)cmd);
  }
 else   if (clazz == UpdateHostPasswordCommand.class) {
    return execute((UpdateHostPasswordCommand)cmd);
  }
 else {
    return Answer.createUnsupportedCommandAnswer(cmd);
  }
}