class CmMgmtServiceLogConfigService implements CmConfigServiceDelegate {

    @Override
    public void setConfigs(Stack stack, ApiRoleList apiRoleList) {
        if (Objects.nonNull(apiRoleList) && !CollectionUtils.isEmpty(apiRoleList.getItems())) {
            apiRoleList.getItems().forEach(apiRole -> addConfig(apiRole,
                    createApiConfig(CmMgmtServiceLogConfigService.MAX_LOG_BACKUP_INDEX, CmMgmtServiceLogConfigService.VALUE)));
        }
    }

}