class WebComponentConfigurationRegistry implements Serializable {

    public static WebComponentConfigurationRegistry getInstance(
            VaadinContext context) {
        assert context != null;

        WebComponentConfigurationRegistry attribute = context.getAttribute(
                WebComponentConfigurationRegistry.class,
                WebComponentConfigurationRegistry::createRegistry);

        if (attribute == null) {
            throw new IllegalStateException(
                    "Null WebComponentConfigurationRegistry obtained from VaadinContext of type "
                            + context.getClass().getName());
        }

        return attribute;
    }

    protected  WebComponentConfigurationRegistry();

}