} catch ( Exception e ) {
//default
asset.updateBinaryContentAttachment( content );
}
} else {
asset.updateBinaryContentAttachment( content );
}
//here we could save, or check in, depending on if enough time has passed to justify
//a new version. Otherwise we will pollute the version history with lots of trivial versions.
//if (shouldCreateNewVersion(asset.getLastModified())) {
asset.checkin( "<content from webdav>" );