setPluginManager.

Crossed fingers no race conditions