class RepositoryApplicationService implements ApplicationService {

    @Transactional
    @Override
    public ProjectApplication deleteApplication(User user, long applicationId) throws ApplicationNotFoundException {
        var application = applicationRepo.findByUserAndId(user, applicationId).orElseThrow(ApplicationNotFoundException::new);
        applicationRepo.delete(application);

        log.debug(String.format("Application with id '%d' of user '%s' was deleted", applicationId, user.getId()));
        return application;
    }

    @Autowired public  RepositoryApplicationService(ProjectService projectService,
                                        ProjectApplicationRepository applicationRepo,
                                        ProjectApplicationEventHandler applicationEventHandler,
                                        Clock clock,
                                        ProjectBoardConfigurationProperties properties);

}