Get rid of black-magic sed script to implement performFetchWithCompletionHandler; finally found way to implement this method outsidee of AppDelegate