@Override
    public String findPhone(final PasswordManagementQuery query) {
        val account = jsonBackedAccounts.getOrDefault(query.getUsername(), null);
        return Optional.ofNullable(account).map(JsonBackedAccount::getPhone).orElse(null);
    }
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