   var dataSource: DataSource?
   var storyboardId: String?
   var mobile: Bool?
-  
-  static public func instantiateController(_ adapter: ServiceAdapter) -> MediaItemsController? {
+
+  static public func instantiateController(_ storyboardId: String) -> MediaItemsController? {
     return UIViewController.instantiate(
       controllerId: MediaItemsController.StoryboardControllerId,
-      storyboardId: type(of: adapter).StoryboardId,
+      storyboardId: storyboardId,
       bundle: Bundle.main
       ).getActionController() as? MediaItemsController
   }

//
//            destination.adapter = newAdapter
            destination.configuration = configuration
            
            destination.params["selectedItem"] = mediaItem
            destination.params["parentId"] = mediaItem.id
            destination.params["parentName"] = mediaItem.name
            destination.params["isContainer"] = true
            
            if mobile == false {
              if let layout = configuration?["buildLayout"] {
                destination.collectionView?.collectionViewLayout = layout as! UICollectionViewLayout
              }
              
              present(destination, animated: true)
            }
            else {

      if let historyManager = configuration["historyManager"] as? HistoryManager {
        self.historyManager = historyManager
      }

      if let dataSource = configuration["dataSource"] as? DataSource {
        self.dataSource = dataSource
      }
