public static function registerResourceConfig($instance) {
        $className = get_class($instance);
        if (!array_key_exists($className, static::$registeredInstances)){
            static::$registeredInstances['$className'] = $instance;
        }
    }