@Override
    public MultifactorAuthenticationTrustRecord get(final long id) {
        remove();
        return storage
            .values()
            .stream()
            .filter(entry -> StringUtils.isNotBlank(entry.getRecordKey()))
            .filter(entry -> entry.getId() == id)
            .sorted()
            .findFirst()
            .orElse(null);
    }
This is {@link JsonMultifactorAuthenticationTrustStorage}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-trusted-mfa-core/src/main/java/org/apereo/cas/trusted/authentication/storage/JsonMultifactorAuthenticationTrustStorage.java