| Line 182... |
Line 182... |
| 182 |
try{
|
182 |
try{
|
| 183 |
InsuranceUtils.submitToGadgetCops(insuranceModel);
|
183 |
InsuranceUtils.submitToGadgetCops(insuranceModel);
|
| 184 |
insurancePolicy.setPosted(true);
|
184 |
insurancePolicy.setPosted(true);
|
| 185 |
}catch (ProfitMandiBusinessException profitMandiBusinessException) {
|
185 |
}catch (ProfitMandiBusinessException profitMandiBusinessException) {
|
| 186 |
LOGGER.info("Unable to submit insurance policy details to {}", insuranceProvider.getName(), profitMandiBusinessException);
|
186 |
LOGGER.info("Unable to submit insurance policy details to {}", insuranceProvider.getName(), profitMandiBusinessException);
|
| - |
|
187 |
throw new ProfitMandiBusinessException("", "", "GDTCPSServerDown_1000");
|
| 187 |
}
|
188 |
}
|
| 188 |
insurancePolicyRepository.persist(insurancePolicy);
|
189 |
insurancePolicyRepository.persist(insurancePolicy);
|
| 189 |
|
190 |
|
| 190 |
PdfModel pdfModel = this.getInvoicePdfModel(insurancePolicy);
|
191 |
PdfModel pdfModel = this.getInvoicePdfModel(insurancePolicy);
|
| 191 |
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|
192 |
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
|