if (!this.applicationRepo.exists(id)) {
throw new GenieNotFoundException("No application information entered. Unable to update.");
}
if (StringUtils.isNotBlank(updateApp.getId())
&& !id.equals(updateApp.getId())) {
throw new GenieBadRequestException("Application id either not entered or inconsistent with id passed in.");
}
//Set the id if it's not set so we can merge
if (StringUtils.isBlank(updateApp.getId())) {
updateApp.setId(id);