Program: 106057
Project: 106057
Buggy source:
@Override public NicProfile addVmToNetwork(VirtualMachine vm,Network network,NicProfile requested) throws ConcurrentOperationException, ResourceUnavailableException, InsufficientCapacityException {
  AsyncJobExecutionContext jobContext=AsyncJobExecutionContext.getCurrentExecutionContext();
  if (!VmJobEnabled.value() || jobContext.isJobDispatchedBy(VmWorkConstants.VM_WORK_JOB_DISPATCHER)) {
    return orchestrateAddVmToNetwork(vm,network,requested);
  }
 else {
    Outcome<VirtualMachine> outcome=addVmToNetworkThroughJobQueue(vm,network,requested);
    try {
      outcome.get();
    }
 catch (    InterruptedException e) {
      throw new RuntimeException("String_Node_Str",e);
    }
catch (    java.util.concurrent.ExecutionException e) {
      throw new RuntimeException("String_Node_Str",e);
    }
    AsyncJobVO jobVo=_entityMgr.findById(AsyncJobVO.class,outcome.getJob().getId());
    if (jobVo.getResultCode() == JobInfo.Status.SUCCEEDED.ordinal()) {
      NicProfile nic=(NicProfile)JobSerializerHelper.fromObjectSerializedString(jobVo.getResult());
      return nic;
    }
 else {
      Object jobException=_jobMgr.unmarshallResultObject(outcome.getJob());
      if (jobException != null) {
        if (jobException instanceof ResourceUnavailableException)         throw (ResourceUnavailableException)jobException;
 else         if (jobException instanceof ConcurrentOperationException)         throw (ConcurrentOperationException)jobException;
 else         if (jobException instanceof InsufficientCapacityException)         throw (InsufficientCapacityException)jobException;
 else         if (jobException instanceof RuntimeException)         throw (RuntimeException)jobException;
      }
      throw new RuntimeException("String_Node_Str");
    }
  }
}

Fixed version (ground truth):
@Override public NicProfile addVmToNetwork(VirtualMachine vm,Network network,NicProfile requested) throws ConcurrentOperationException, ResourceUnavailableException, InsufficientCapacityException {
  AsyncJobExecutionContext jobContext=AsyncJobExecutionContext.getCurrentExecutionContext();
  if (!VmJobEnabled.value() || jobContext.isJobDispatchedBy(VmWorkConstants.VM_WORK_JOB_DISPATCHER)) {
    return orchestrateAddVmToNetwork(vm,network,requested);
  }
 else {
    Outcome<VirtualMachine> outcome=addVmToNetworkThroughJobQueue(vm,network,requested);
    try {
      outcome.get();
    }
 catch (    InterruptedException e) {
      throw new RuntimeException("String_Node_Str",e);
    }
catch (    java.util.concurrent.ExecutionException e) {
      throw new RuntimeException("String_Node_Str",e);
    }
    Object jobException=_jobMgr.unmarshallResultObject(outcome.getJob());
    if (jobException != null) {
      if (jobException instanceof ResourceUnavailableException)       throw (ResourceUnavailableException)jobException;
 else       if (jobException instanceof ConcurrentOperationException)       throw (ConcurrentOperationException)jobException;
 else       if (jobException instanceof InsufficientCapacityException)       throw (InsufficientCapacityException)jobException;
 else       if (jobException instanceof RuntimeException)       throw (RuntimeException)jobException;
 else       if (jobException instanceof Long)       return requested;
    }
    throw new RuntimeException("String_Node_Str");
  }
}