[tienlp] Appdelegate --> common method in CoreData