}
protected void startPlugin(Class plugin, CouchDbConnector connector, CouchDbInstance couchDBInstance ) {
try {
Plugin instance = (Plugin)plugin.newInstance();
// a little lame. Calling the default couchmanager? huh?
File workingDir = createPluginWorkingDirectory(plugin, DefaultCouchManager.getWorkingDir());
instance.start(connector, couchDBInstance, workingDir);
} catch (Exception ex) {
Logger.getLogger(App.class.getName()).log(Level.SEVERE, null, ex);
}
}