Is this pluggable in any way? (Loading assemblies). You might come across subtle bugs where it fails to find the right types because of when this code ran (i.e. you only get the assemblies currently loaded instead of the ones that would have been loaded etc).