public void delete(Object entity) {
Session session = null;
try {
session = PersistenceManagerUtils.getSession(this.getPersistenceManager(), true);
PrevaylerCallback callback = new DeleteByEntityCallback(entity);
session.execute(callback);
} catch(DataAccessException ex) {
throw ex;
} catch(Exception ex) {
throw new PrevaylerOperationException("Exception occured while executing Prevayler operation: " + ex.getMessage(), ex);