Don't use session.getIdentifier to get the identifier since Hibernate will blow up if the object in question is not in session