return ((HibernateProxy) o).getHibernateLazyInitializer().getIdentifier();
}
if (o instanceof BaseOBObject) {
return (Serializable) ((BaseOBObject) o).getId();
}
throw new ArgumentException("Argument is not a BaseOBObject and not a HibernateProxy "
+ (o != null ? o.getClass().getName() : "it is NULL"));
}