if (object instanceof LazyCGLIB) {
LazyCGLIB cgObject = (LazyCGLIB) object;
// TODO [WG] We still might have an option for some serious optimization
// here if the instance has not been materialized yet.
Identity identity = cgObject.interceptedIdentity();
ClassMolder molder = cgObject.interceptedClassMolder();
LockEngine engine = molder.getLockEngine();
// Get the OID we're looking for.
OID oid = new OID(molder, identity);