public void save() throws IOException, SpreadsheetException
{
for (Factory factory : FACTORIES) {
if (factory.canHandle( this.config.typeExtension )) {
final SpreadsheetSaver saver = factory.newInstance( this.config );
saver.save();
return;
}
}
throw new SpreadsheetException.UnsupportedFormat( "No saver found for extension " + this.config.typeExtension );
}