}
protected void registerPlugin(String pathToDescriptor) throws Exception {
ContentPluginDescriptorType descriptor = loadPluginDescriptor(pathToDescriptor);
ContentSourcePluginMetadataManager mm = new ContentSourcePluginMetadataManager();
mm.loadPlugin(descriptor);
metadataManager.registerTypes(mm.getAllContentSourceTypes());
}
public ContentPluginDescriptorType loadPluginDescriptor(String descriptorFile) throws Exception {
URL descriptorUrl = this.getClass().getClassLoader().getResource(descriptorFile);