convert the nodecontext from a Map[String, String] to a NodeContext, which is a type alias for Map[String, String]