function bindTransactionServiceEntity($transactionServiceEntity)
{
    if ($transactionServiceEntity != null) {
        $transactionServiceDto = new TransactionServiceDto();
        $transactionServiceDto->setTransactionServiceId($transactionServiceEntity->getTransactionServiceId());
        $transactionServiceDto->setTransaction(bindTransactionEntity($transactionServiceEntity->getTransaction()));
        $transactionServiceDto->setService(bindServiceEntity($transactionServiceEntity->getService()));
        return $transactionServiceDto;
    } else {
        return null;
    }
}