public DesignProcessDefinitionBuilder getProcessDefinitionBuilder() {
   for (final IConfigurationElement element :
       BonitaStudioExtensionRegistryManager.getInstance()
           .getConfigurationElements(PROCESS_DEFINITION_EXPORTER_ID)) {
     try {
       return (DesignProcessDefinitionBuilder) element.createExecutableExtension("class");
     } catch (final CoreException e) {
       BonitaStudioLog.error(e, EnginePlugin.PLUGIN_ID);
     }
   }
   return new DesignProcessDefinitionBuilder();
 }
 public List<BARResourcesProvider> getBARResourcesProvider() {
   final List<BARResourcesProvider> res = new ArrayList<BARResourcesProvider>();
   final IConfigurationElement[] extensions =
       BonitaStudioExtensionRegistryManager.getInstance()
           .getConfigurationElements(BAR_RESOURCE_PROVIDERS_EXTENSION_POINT);
   for (final IConfigurationElement extension : extensions) {
     try {
       res.add(
           extensionContextInjectionFactory.make(
               extension, "providerClass", BARResourcesProvider.class));
     } catch (final Exception ex) {
       BonitaStudioLog.error(ex);
     }
   }
   return res;
 }
  protected BARResourcesProvider getBARApplicationResourcesProvider() {
    BARResourcesProvider result = null;
    int maxPriority = -1;
    final IConfigurationElement[] extensions =
        BonitaStudioExtensionRegistryManager.getInstance()
            .getConfigurationElements(BAR_APPLICATION_RESOURCE_PROVIDERS_EXTENSION_POINT);
    for (final IConfigurationElement extension : extensions) {

      try {
        final int p = Integer.parseInt(extension.getAttribute("priority"));
        if (p >= maxPriority) {

          result = (BARResourcesProvider) extension.createExecutableExtension("providerClass");
          maxPriority = p;
        }
      } catch (final Exception ex) {
        BonitaStudioLog.error(ex);
      }
    }
    return result;
  }