class CronofyProfileCreator extends OAuth20ProfileCreator {

    /**
     * <p>Constructor for CronofyProfileCreator.</p>
     *
     * @param configuration a {@link OAuth20Configuration} object
     * @param client a {@link IndirectClient} object
     */
    public CronofyProfileCreator(final OAuth20Configuration configuration, final IndirectClient client) {
        super(configuration, client);
    }

    /** {@inheritDoc} */
    protected Optional<UserProfile> retrieveUserProfileFromToken(final WebContext context, final Token accessToken) {<FILL_FUNCTION_BODY>}
}

        final UserProfile profile = configuration.getProfileDefinition().extractUserProfile(accessToken.getRawResponse());
        addTokenToProfile(profile, accessToken);
        return Optional.of(profile);
    
<methods>public void <init>(org.pac4j.oauth.config.OAuth20Configuration, org.pac4j.core.client.IndirectClient) <variables>