Since you can't (and do not want to) set the order in which the plugins will be loaded, you will run into a problem if you need a specific order.
The BootstrapManager has a handy method called whenReady(parts, callback). The
parts is an array of mandatory element names and the callback will be executed
as soon as those are ready.
In case they have been already ready, the callback will be run without any interruption.
The following example is used with the sitemap plugin, to add urls to the
sitemap after the plugin sitemap is ready. It fits best into the
lib/index.js of the application.
bootstrap_manager.whenReady(["plugin.sitemap"], function() {
sitemap_manager.addUrl('');
sitemap_manager.addUrl('downloads/');
sitemap_manager.addUrl('plugins/');
sitemap_manager.addUrl('license/');
});