ApplicationVersion applicationVersion = applicationVersionService.get(id);
User initiationUser = userService.getByEmail(user);
if (applicationVersion != null) {
EventDeliveryWithComposite deliveryMechanism = eventDeliveryWithCompositeFactory.getEventDelivery(EventType.APPLICATION_VERSION_RESIGN_COMPLETE);
if (deliveryMechanism != null) {
if (!success && resignErrorType == null) {
resignErrorType = ResignErrorType.GENERIC;
}
deliveryMechanism.sendNotifications(applicationVersion, new ApplicationVersionResignCompleteComposite(success, initiationUser, resignErrorType));
}
if (success) {
applicationVersionControllerService.updateApplicationVersionState(id, requestedAppState, true);
} else {