S, I kind of have to qualify your assertion.
It is quite true that, however you parse it, 'renting out your license' is a clear violation of contracting laws.
Many times an electrical contractor will bring on subs, though. For example, I often bring in subs to patch walls, dig trenches, pour concrete, etc. I also use them for data, Ansul, refrigeration, and alarm work - even though my license is broad enough to let me do nearly anything with wires.
That said, the 'sub' needs to be a real contractor ... and not some day laborer with ambitions of being a contractor, working for cash. That is, he must have his license, bond, etc.
Does it sound like the work of a general contractor? It sure does. I am allowed to act ... to use the local bureaucrats' word ... as the "prime" contractor as long as the work is primarily electrical. If it's not, then I need to bring in a general contractor.