Fixed error with missing import
Renamed legal documents middleware class