@@ -0,0 +1,1468 @@
+package io.teiler.api.service;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Service;%0A%0Aimport io.teiler.server.persistence.repositories.CompensationRepository;%0Aimport io.teiler.server.util.exceptions.TransactionNotFoundException;%0A%0A@Service%0Apublic class CompensationUtil %7B%0A    %0A    @Autowired%0A    private CompensationRepository compensationRepository;%0A    %0A    public CompensationUtil() %7B /* intentionally empty */ %7D%0A%0A    /**%0A     * Checks whether a Compensation exists within a Group.%0A     * %0A     * @param groupId Id of the Group%0A     * @param compensationId Id of the Compensation%0A     * @throws TransactionNotFoundException Compensation does not exists within Group%0A     */%0A    public void checkCompensationBelongsToThisGroup(String groupId, int compensationId) throws TransactionNotFoundException %7B%0A        if (compensationRepository.getByGroupIdAndCompensationId(groupId, compensationId) == null) %7B%0A            throw new TransactionNotFoundException();%0A        %7D%0A    %7D%0A%0A    /**%0A     * Checks whether a Compensation exists.%0A     *%0A     * @param compensationId Id of the Compensation%0A     * @throws TransactionNotFoundException Compensation does not exist%0A     */%0A    public void checkCompensationExists(int compensationId) throws TransactionNotFoundException %7B%0A        if (compensationRepository.getById(compensationId) == null) %7B%0A            throw new TransactionNotFoundException();%0A        %7D%0A    %7D%0A    %0A%7D%0A

add compensation util (#164)