public static OAuthRegisteredService getRegisteredOAuthServiceByClientId(final ServicesManager servicesManager,
                                                                             final String clientId) {
        return getRegisteredOAuthServiceByClientId(servicesManager, clientId, OAuthRegisteredService.class);
    }
Locate the requested instance of {@link OAuthRegisteredService} by the given clientId.

@param servicesManager the service registry DAO instance.
@param clientId        the client id by which the {@link OAuthRegisteredService} is to be located.
@return null, or the located {@link OAuthRegisteredService} instance in the service registry.
support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/util/OAuth20Utils.java