@Override
    public Collection<? extends OneTimeTokenAccount> load() {
        return lock.tryLock(() -> {
            try {
                return readAccountsFromJsonRepository()
                    .values()
                    .stream()
                    .flatMap(List::stream)
                    .collect(Collectors.toList());
            } catch (final Exception e) {
                LoggingUtils.error(LOGGER, e);
            }
            return new ArrayList<>();
        });
    }
This is {@link JsonGoogleAuthenticatorTokenCredentialRepository}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-gauth-core/src/main/java/org/apereo/cas/gauth/credential/JsonGoogleAuthenticatorTokenCredentialRepository.java