@Override
protected NotFound removeImpl(NotFound notFound) throws SystemException {
notFound = toUnwrappedModel(notFound);
Session session = null;
try {
session = openSession();
if (!session.contains(notFound)) {
notFound = (NotFound) session.get(NotFoundImpl.class,
notFound.getPrimaryKeyObj());
}
if (notFound != null) {
session.delete(notFound);
}
} catch (Exception e) {
throw processException(e);
} finally {
closeSession(session);