Release release = releaseRepository.findByPersistanceId(persistanceId);
// if the release is not found, return a global error
if (release == null) {
Errors errors = AgilePlanningObjectFactory.getErrors();
errors.reject("release.doesntExistsInDatabase");
return errors;
}
// if the release is found, update the persistanceVersion for concurrency management
release.setPersistanceVersion(persistanceVersion);