public static <T> T getServiceUserInterfaceMetadata(final RequestContext requestContext, final Class<T> clz) {
        if (requestContext.getFlowScope().contains(PARAMETER_SERVICE_UI_METADATA)) {
            return requestContext.getFlowScope().get(PARAMETER_SERVICE_UI_METADATA, clz);
        }
        return null;
    }
Gets service user interface metadata.

@param <T>            the type parameter
@param requestContext the request context
@param clz            the clz
@return the service user interface metadata
core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java