@Override
    public Map<String, String> getSecurityQuestions(final PasswordManagementQuery query) {
        val account = jsonBackedAccounts.getOrDefault(query.getUsername(), null);
        if (account != null) {
            return account.getSecurityQuestions();
        }
        return new HashMap<>();
    }
This is {@link JsonResourcePasswordManagementService}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-pm-core/src/main/java/org/apereo/cas/pm/impl/JsonResourcePasswordManagementService.java