     }
 
 }
+
+
+// MARK: - Selector
+
+private extension Selector {
+    
+    static let refresh = #selector(CacheIntegrationTableViewController.refresh(barButtonItem:))
+    
+}

    
    public func controllerDidChangeContent(_ controller: NSFetchedResultsController<NSFetchRequestResult>) {
        
        tableView.beginUpdates()
        
        tableView.reloadSections(
            IndexSet(integersIn: 0..<webServiceController.sections.count),
            with: .automatic
        )
        
        tableView.endUpdates()
        
    }
    

    
    public override func viewDidLoad() {
        super.viewDidLoad()
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(
            barButtonSystemItem: .refresh,
            target: self,
            action: .refresh
        )
        
        let modelURL = Bundle.main().urlForResource("Cache", withExtension: "momd")!
        let model = NSManagedObjectModel(contentsOf: modelURL)!
