public static JpaGoogleAuthenticatorAccount from(final OneTimeTokenAccount acct) {
        return JpaGoogleAuthenticatorAccount.builder()
            .id(acct.getId())
            .username(acct.getUsername().trim().toLowerCase(Locale.ENGLISH))
            .secretKey(acct.getSecretKey())
            .validationCode(acct.getValidationCode())
            .scratchCodes(acct.getScratchCodes()
                .stream()
                .map(code -> BigInteger.valueOf(code.longValue()))
                .collect(Collectors.toList()))
            .properties(acct.getProperties())
            .registrationDate(acct.getRegistrationDate())
            .name(acct.getName())
            .source(acct.getSource())
            .build();
    }
Update account info from account object.

@param acct to be updated
@return this
support/cas-server-support-gauth-jpa/src/main/java/org/apereo/cas/gauth/credential/JpaGoogleAuthenticatorAccount.java