A......... [ZBXNEXT-1583] Remove unnecessary code from import and export (reuse existing methods to handle item and graph prototypes). Use already retrieved graphs in CGraphPrototype::validateUpdate() instead of asking from DB again only for error message. Fix discovery rule import of graphs by resetting graphs in referencer so they get re-loaded from DB.