class AbstractInterfaceConfig extends AbstractMethodConfig {

    protected void checkRegistry() {
        loadRegistriesFromBackwardConfig();

        convertRegistryIdsToRegistries();

        for (RegistryConfig registryConfig : registries) {
            registryConfig.refresh();
            if (StringUtils.isNotEmpty(registryConfig.getId())) {
                registryConfig.setPrefix(Constants.REGISTRIES_SUFFIX);
                registryConfig.refresh();
            }
        }

        for (RegistryConfig registryConfig : registries) {
            if (!registryConfig.isValid()) {
                throw new IllegalStateException("No registry config found or it's not a valid config! " +
                        "The registry config is: " + registryConfig);
            }
        }

        useRegistryForConfigIfNecessary();
    }

}