* @return the configuration persister
*/
public synchronized ExtensibleConfigurationPersister getConfigurationPersister() {
if (configurationPersister == null) {
if (serverEnvironment == null) {
configurationPersister = new NullConfigurationPersister(new StandaloneXml(moduleLoader));
}
else {
QName rootElement = new QName(Namespace.CURRENT.getUriString(), "server");
StandaloneXml parser = new StandaloneXml(Module.getBootModuleLoader());
configurationPersister = new BackupXmlConfigurationPersister(new File(serverEnvironment.getServerConfigurationDir(), "standalone.xml"), rootElement, parser, parser);
}
}
return configurationPersister;
}