Copy prototype function during DI annotation
Merge branch 'master' into thisdemo