@Override
    public YubiKeyAccount getAccountInternal(final String uid) {
        try {
            val account = fetchSingleYubiKeyAccount(uid);
            entityManager.detach(account);
            return account;
        } catch (final NoResultException e) {
            LOGGER.debug("No registration record could be found", e);
        }
        return null;
    }
This is {@link JpaYubiKeyAccountRegistry}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-yubikey-jpa/src/main/java/org/apereo/cas/adaptors/yubikey/dao/JpaYubiKeyAccountRegistry.java