public function load(AbstractMetaModelFactory $factory, AbstractMetaModel $metamodel, array $filters = NULL, $finalAttempt)
 {
     $metamodelTypeFolder = $this->getMetaModelFolderName();
     $filecount = 0;
     $metamodelConfigurations = module_invoke_all('dc_metamodel');
     foreach ($metamodelConfigurations as $metamodelConfiguration) {
         $path = $metamodelConfiguration['path'] . DIRECTORY_SEPARATOR . $metamodelTypeFolder . DIRECTORY_SEPARATOR . 'metadata';
         // initial name space is not defined. It will be based on subfolder name, if any
         $namespace = NULL;
         $simplifiedPath = PathHelper::simplifyPath($path);
         LogHelper::log_info(t("Loading configuration from '@path' ...", array('@path' => $simplifiedPath)));
         if (!file_exists($path)) {
             throw new IllegalStateException(t('Folder could not be found: @path', array('@path' => $simplifiedPath)));
         }
         $filecount += $this->loadFromDirectory($metamodel, $filters, $path, $namespace);
     }
     LogHelper::log_info(t('Processed @filecount files', array('@filecount' => $filecount)));
     return self::LOAD_STATE__SUCCESSFUL;
 }