}
try {
EnhancedStringBuilder newSrc = getUpdatedSource(fileObject);
if (newSrc != null) {
if (!fileObject.canWrite()) {
throw new RuntimeIOException("Cant write to file: " + fileObject.getNameExt());
}
writeFile(fileObject, newSrc);
}
} catch (IOException ex) {
throw new RuntimeIOException(ex);
}
}