if (domainUserRequest != null) {
domainUserRequest.setStatus(Status.DECLINED);
// update(domainUserRequest);
EventDelivery deliveryMechanism = eventDeliveryFactory.getEventDelivery(EventType.DOMAIN_USER_ACCESS_REQUEST_CONFIRMATION);
if (deliveryMechanism != null) {
success = deliveryMechanism.sendNotifications(domainUserRequest);
if (!success) {
log.error("Error sending Domain User Access Request Confirmation Email:", domainUserRequest);
}
}