function manualInsuranceResolution(
    bytes32 flightId,
    uint8 newStatusId,
    bytes32 productId)
  public
  onlyIfCreator {

    
    for (uint i = 0; i < insuranceList[flightId].length; i++) {

      
      if (areStringsEqual(insuranceList[flightId][i].productId, productId)) {

        
        if (insuranceList[flightId][i].status == 0) {

          
          insuranceList[flightId][i].status = newStatusId;

          
          InsuranceUpdate(
            productId,
            flightId,
            insuranceList[flightId][i].premium,
            insuranceList[flightId][i].indemnity,
            newStatusId
          );

          return;
        }
      }
    }
  }