//configuration after removing the server instance (since a configuration
//can only be deleted if it is unreferenced). Unfortunately, if
//this fails, we leave an unreferenced standalone configurtion.
String configName = server.getConfigRef();
// remove the server
servers.removeServer(server, OVERWRITE);
//remove the standalone configuration
//FIXTHIS: One issue is that the call below will result in a call to flushAll
//which is also called below. This must be taken into account when we
//figure out the notification story.
getConfigsConfigBean().deleteConfiguration(configName);