class AuthorisationServiceInternal implements AuthorisationService {

    @Transactional(readOnly = true)
    @Override
    public CmsResponse<Authorisation> getAuthorisationById(String authorisationId) {
        Optional<AuthorisationEntity> authorisationOptional = getAuthorisation(authorisationId);

        if (authorisationOptional.isEmpty()) {
            log.info("Authorisation ID: [{}]. Get authorisation has failed, because authorisation could not found",
                     authorisationId);

            return CmsResponse.<Authorisation>builder()
                       .error(LOGICAL_ERROR)
                       .build();
        }

        AuthorisationEntity authorisation = authorisationOptional.get();
        return CmsResponse.<Authorisation>builder()
                   .payload(authorisationMapper.mapToAuthorisation(authorisation))
                   .build();
    }

}