if (page != null) {
position = (page - 1) * PAYMENTS_PER_PAGE;
amount = PAYMENTS_PER_PAGE;
}
SubsidiaryEntity subsidiaryEntity = DozerHelper.map(subsidiary,
SubsidiaryEntity.class);
List<PaymentEntity> paymentEntities = paymentRepository
.findBySubsidiaryInPeriod(subsidiaryEntity, beginDate,
endingDate, completed, type, amount, position);