private static String mapToJson(final Collection<OneTimeTokenAccount> acct) {
        return FunctionUtils.doUnchecked(() -> {
            val json = MAPPER.writeValueAsString(acct);
            LOGGER.trace("Transformed object [{}] as JSON value [{}]", acct, json);
            return json;
        });
    }
This is {@link LdapGoogleAuthenticatorTokenCredentialRepository}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-gauth-ldap/src/main/java/org/apereo/cas/gauth/credential/LdapGoogleAuthenticatorTokenCredentialRepository.java