VID-2102 Using static variable instead of global, adding output method for wfMessage