ContentServerPluginContainer pc = ContentManagerHelper.getPluginContainer();
pc.getAdapterManager().startAdapter(contentSource);
// Schedule a job for the future
pc.scheduleProviderSyncJob(contentSource);
// Also sync immediately so we have the metadata
pc.syncProviderNow(contentSource);
} catch (InitializationException ie) {
log.warn("Failed to start adapter for [" + contentSource + "]", ie);
throw new ContentSourceException("Failed to start adapter for [" + contentSource + "]. Cause: "
+ ThrowableUtil.getAllMessages(ie));