class FinanceReviewerServiceImpl extends BaseTransactionalService implements FinanceReviewerService {

    @Override
    public ServiceResult<SimpleUserResource> getFinanceReviewerForProject(long projectId) {
        return getProject(projectId)
                .andOnSuccess(project -> find(project.getFinanceReviewer(), notFoundError(FinanceReviewer.class, projectId))
                .andOnSuccessReturn(reviewer -> simpleUserResourceFromUser(reviewer.getUser())));
    }

}