public void saveToRecycleBin(XWikiAttachment attachment, String deleter, Date date,
XWikiContext context, boolean bTransaction) throws XWikiException
{
final DeletedAttachment trashAtachment =
new DeletedAttachment(attachment, deleter, date, context);
<BUG>executeWrite(context, bTransaction, new HibernateCallback()
</BUG>
{
public Object doInHibernate(Session session) throws HibernateException
{

public void saveToRecycleBin(XWikiAttachment attachment, String deleter, Date date,
XWikiContext context, boolean bTransaction) throws XWikiException
{
final DeletedAttachment trashAtachment =
new DeletedAttachment(attachment, deleter, date, context);
executeWrite(context, bTransaction, new HibernateCallback<Object>()
{
public Object doInHibernate(Session session) throws HibernateException
{
