final String assetFormat = asset.getFormat();
final ContentHandler contentHandler = ContentManager.getHandler( assetFormat );
if ( contentHandler instanceof ICanHasAttachment ) {
ICanHasAttachment attachmentHandler = (ICanHasAttachment) contentHandler;
try {
attachmentHandler.onAttachmentAdded( asset );
} catch ( IOException ioe ) {
log.error( "Unable to rename Process [type=" + assetFormat + "] package for asset [" + asset.getName() + "]",
ioe );
}
}