changed name of getPluginFactory