{
return session.get(DeletedAttachment.class, Long.valueOf(index));
}</BUG>
});
}
<BUG>public DeletedAttachment[] getAllDeletedAttachments(final XWikiAttachment attachment,
</BUG>
XWikiContext context, boolean bTransaction) throws XWikiException
{
<BUG>return (DeletedAttachment[]) executeRead(context, bTransaction, new HibernateCallback()
{</BUG>
@SuppressWarnings("unchecked")

{
public Object doInHibernate(Session session) throws HibernateException
{
