class AuthUtils {

    public static URI buildAuthProviderHostUri(ServiceHost host, String serviceLink) {
        URI uri = host.getStateNoCloning().authProviderHostURI;
        URI baseUri = uri != null ? uri : host.getUri();
        return UriUtils.extendUri(baseUri, serviceLink);
    }

    private  AuthUtils();

}