refs #766 - implemented for mvc-new. Need to add also for rest-new