Subversion Repositories SmartDukaan

Rev

Rev 22993 | Rev 22997 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22993 Rev 22994
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();