StorageUtil — avoid String creation
updateFileExternallyFromStreamProviders — don't write JDOM document twice (on equal and on actual save (if differs))
cleanup
CR-IC-6204#CFR-91426 add javadoc
contract inference: don't go inside try because catch/finally clauses can change the outcome completely