private static void processContacts(final OidcClientRegistrationRequest registrationRequest,
                                        final OidcRegisteredService registeredService) {
        registeredService.getContacts().clear();
        registrationRequest.getContacts().forEach(givenContact -> {
            val contact = new DefaultRegisteredServiceContact();
            if (givenContact.contains("@")) {
                contact.setEmail(givenContact);
                contact.setName(givenContact.substring(0, givenContact.indexOf('@')));
            } else {
                contact.setName(givenContact);
            }
            registeredService.getContacts().add(contact);
        });
    }
This is {@link OidcDefaultClientRegistrationRequestTranslator}.

@author Misagh Moayyed
@since 6.6.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/web/controllers/dynareg/OidcDefaultClientRegistrationRequestTranslator.java