framework/application/kernel/core/src/main/java/org/ldp4j/application/kernel/engine/DefaultApplicationContext.java
private void registerConstraintReport(Resource resource, InvalidContentException error) {
		ConstraintReport report=
			resource.
				addConstraintReport(
					error.getConstraints(),
					new Date(),
					currentRequest());
		this.constraintReportRepository.add(report);
		LOGGER.debug("Constraint validation failed. Registered constraint report {}",report.id());
		error.setConstraintsId(report.id().failureId());
	}
private void registerConstraintReport(Resource resource, InvalidContentException error) {
		ConstraintReport report=
			resource.
				addConstraintReport(
					error.getConstraints(),
					new Date(),
					currentRequest());
		this.constraintReportRepository.add(report);
		LOGGER.debug("Constraint validation failed. Registered constraint report {}",report.id());
		error.setConstraintsId(report.id().failureId());
	}
TODO: How do we do this transactionally