public static function getConfig()
{
if (!is_object(self::$componentConfig)) {
$config = [];
// check if we have default config
if (isset(self::$defaultConfig)) {
$config = self::$defaultConfig;
}
self::$componentConfig = new ConfigObject($config);
}
return self::$componentConfig;
}