private bool TryGetMapping(string entityName, MappingUpdatedEvent updatedEvent, out EntityWithETag <MdmId> mapping) { mapping = mappingService.GetMapping(entityName, updatedEvent.EntityId, updatedEvent.MappingId); if (mapping.Object == null) { this.eventAggregator.Publish( new ErrorEvent("Unable to retrieve original mapping")); return(false); } return(true); }