You can make this code compliant as long as you can isolate the circuit via some kind of transfer switch, like you would for a portable generator. Basically you can backfeed the circuit if you isolate it, however getting around the way the unit yo have feeds may be a problem.