Add foreignsource check in NCSEdgeProvider