ResponseEntity createTemplate()

in service/src/main/java/org/apache/fineract/cn/notification/service/rest/TemplateRestController.java [88:95]


	ResponseEntity<Void> createTemplate(@RequestBody @Valid final Template template) throws InterruptedException {
		if (this.templateService.templateExists(template.getTemplateIdentifier())) {
			throw ServiceException.conflict("Template {0} already exists.", template.getTemplateIdentifier());
		}
		
		this.commandGateway.process(new CreateTemplateCommand(template));
		return new ResponseEntity<>(HttpStatus.CREATED);
	}