original_string: protected function insertOtherResource()
      {
          $items = $this->package->getNonStorageServices();
          $imported = false;
  
          foreach ($items as $service => $resources) {
              foreach ($resources as $resourceName => $details) {
                  try {
                      $api = $service . '/' . $resourceName;
                      switch ($api) {
                          case 'system/app':
                          case 'system/role':
                          case 'system/service':
                          case 'system/event_script':
                          case 'system/user':
                              // Skip; already imported at this point.
                              break;
                          case $service . '/_table':
                              $imported = $this->insertDbTableResources($service);
                              break;
                          case $service . '/_proc':
                          case $service . '/_func':
                              // Not supported at this time.
                              $this->log('warning', 'Skipping resource ' . $resourceName . '. Not supported.');
                              break;
                          default:
                              $imported = $this->insertGenericResources($service, $resourceName);
                              break;
                      }
                  } catch (UnauthorizedException $e) {
                      $this->log(
                          'error',
                          'Failed to insert resources for ' . $service . '/' . $resourceName . '. ' . $e->getMessage()
                      );
                  }
              }
          }
  
          return $imported;
      }
code: protected function insertOtherResource()
      {
          $items = $this->package->getNonStorageServices();
          $imported = false;
  
          foreach ($items as $service => $resources) {
              foreach ($resources as $resourceName => $details) {
                  try {
                      $api = $service . '/' . $resourceName;
                      switch ($api) {
                          case 'system/app':
                          case 'system/role':
                          case 'system/service':
                          case 'system/event_script':
                          case 'system/user':
                              // Skip; already imported at this point.
                              break;
                          case $service . '/_table':
                              $imported = $this->insertDbTableResources($service);
                              break;
                          case $service . '/_proc':
                          case $service . '/_func':
                              // Not supported at this time.
                              $this->log('warning', 'Skipping resource ' . $resourceName . '. Not supported.');
                              break;
                          default:
                              $imported = $this->insertGenericResources($service, $resourceName);
                              break;
                      }
                  } catch (UnauthorizedException $e) {
                      $this->log(
                          'error',
                          'Failed to insert resources for ' . $service . '/' . $resourceName . '. ' . $e->getMessage()
                      );
                  }
              }
          }
  
          return $imported;
      }
code_tokens: protected function insertOtherResource ( ) { $ items = $ this -> package -> getNonStorageServices ( ) ; $ imported = false ; foreach ( $ items as $ service => $ resources ) { foreach ( $ resources as $ resourceName => $ details ) { try { $ api = $ service . '/' . $ resourceName ; switch ( $ api ) { case 'system/app' : case 'system/role' : case 'system/service' : case 'system/event_script' : case 'system/user' : // Skip; already imported at this point. break ; case $ service . '/_table' : $ imported = $ this -> insertDbTableResources ( $ service ) ; break ; case $ service . '/_proc' : case $ service . '/_func' : // Not supported at this time. $ this -> log ( 'warning' , 'Skipping resource ' . $ resourceName . '. Not supported.' ) ; break ; default : $ imported = $ this -> insertGenericResources ( $ service , $ resourceName ) ; break ; } } catch ( UnauthorizedException $ e ) { $ this -> log ( 'error' , 'Failed to insert resources for ' . $ service . '/' . $ resourceName . '. ' . $ e -> getMessage ( ) ) ; } } } return $ imported ; }
docstring: Imports resources that does not need to inserted in a specific order.
  
  @throws \DreamFactory\Core\Exceptions\InternalServerErrorException
docstring_tokens: Imports resources that does not need to inserted in a specific order .