public ComponentRegistry(String cacheName, Configuration configuration, AdvancedCache cache,
GlobalComponentRegistry globalComponents, ReflectionCache reflectionCache) {
super(reflectionCache);
try {
this.cacheName = cacheName;
if (cacheName == null) throw new ConfigurationException("Cache name cannot be null!");
if (globalComponents == null) throw new NullPointerException("GlobalComponentRegistry cannot be null!");
this.globalComponents = globalComponents;
registerDefaultClassLoader(null);
registerComponent(this, ComponentRegistry.class);