initializeCustomRegistries();
String apiVersion = getVersion().toString();
String registryVersion = getConfiguration("registry.version").toString();
if (!apiVersion.equals(registryVersion)){
throw new RegistryAPIVersionIncompatibleException("Incompatible registry versions. Please check whether you updated the API and Registry " +
"versions.");
}
String[] list = compatibleVersionMap.get(apiVersion);
if (list == null){
throw new RegistryAPIVersionIncompatibleException("Incompatible registry versions. Please check whether you updated the API and Registry " +
"versions.");
}
if (!Arrays.asList(list).contains(registryVersion)){
throw new RegistryAPIVersionIncompatibleException("Incompatible registry versions. Please check whether you updated the API and Registry " +
"versions.");
}
}