{
try
{
for(final Iterator i = attachments.iterator(); i.hasNext(); )
{
final Attachment attachment = (Attachment) i.next();
logger.debug("Adding attachment : " + attachment);
DigitalAssetController.create(createDigitalAssetVO(attachment), getInputStream(attachment), getContentVersion(), getDatabase());
}
}
catch(Exception e)