public boolean updateConfiguration( ConfigGroup configGroup ) {
String filename = configGroup.getName().replaceAll( INVALID_FILENAME_CHARS, "_" );
final Path filePath = ioService.get( systemRepository.getUri() ).resolve( filename + configGroup.getType().getExt() );
final CommentedOption commentedOption = new CommentedOption( getIdentityName(),
"Updated config " + filePath.getFileName() );
try {
ioService.startBatch( new FileSystem[]{filePath.getFileSystem()} );
ioService.write( filePath, marshaller.marshall( configGroup ), commentedOption );