Cannot see custom attributes

I created a few user attributes but after user logs on I cannot see the attribute.
I am using pac4j. I setup the following

final OidcConfiguration oidcConfiguration = new OidcConfiguration();
oidcConfiguration.setClientId(getOktaClientId());
oidcConfiguration.setSecret(getOktaClientSecret());
oidcConfiguration.setScope(“openid email profile phone address”);

oidcConfiguration.setDiscoveryURI(getOktaURL()+"/oauth2/default/.well-known/openid-configuration");
oidcConfiguration.setUseNonce(true);
final OidcClient<OidcProfile, OidcConfiguration> oidcClient = new OidcClient<>(oidcConfiguration);
oidcClient.setAuthorizationGenerator((ctx, profile) → {
profile.addRole(“ROLE_USER”);
return profile;
});

I also created a claim for the custom attribute.

For the user that logs in I have the following code:
J2EContext context1 = new J2EContext(request, response);
ProfileManager manager = new ProfileManager(context1);
final Optional optional = manager.get(true);

Printing manager.getAll(true)
doesnot show custom attributes.