}
// Do we have an instance in the registry?
- if (ObjectRegistry::getRegistry()->instanceExists($configKey)) {
+ if (ObjectRegistry::getRegistry('generic')->instanceExists($configKey)) {
// Then use this instance
- $templateInstance = ObjectRegistry::getRegistry()->getInstance($configKey);
+ $templateInstance = ObjectRegistry::getRegistry('generic')->getInstance($configKey);
} else {
// Get the XML template instance
$templateInstance = ObjectFactory::createObjectByConfiguredName($configKey);
$templateInstance->enableXmlCompacting();
// Set the instance in registry for further use
- ObjectRegistry::getRegistry()->addInstance($configKey, $templateInstance);
+ ObjectRegistry::getRegistry('generic')->addInstance($configKey, $templateInstance);
}
// Return the instance