private void persistConfiguration( final String application,
final String block,
final Configuration configuration )
throws SAXException, IOException, ConfigurationException
{
final DefaultConfigurationSerializer serializer = new DefaultConfigurationSerializer();
final File directory = new File( this.m_storageDirectory, application );
FileUtil.forceMkdir( directory );
if( getLogger().isDebugEnabled() )
getLogger().debug( "Serializing configuration to disk [app: " + application
+ ", block: " + block + "]" );
serializer.setIndent( true );
serializer.serializeToFile( new File( directory, block + ".xml" ), configuration );
}