protected Object resolveObject ( Object objectToResolve ) { final String methodName = "resolveObject" ; if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . entry ( this , cclass , methodName , new Object [ ] { objectToResolve } ) ; Object resolvedObject ; // The resolved object we will return. if ( objectToResolve instanceof Token ) { resolvedObject = ( ( Token ) objectToResolve ) . current ( ) ; } else { resolvedObject = objectToResolve ; } if ( Tracing . isAnyTracingEnabled ( ) && trace . isEntryEnabled ( ) ) trace . exit ( this , cclass , methodName , new Object [ ] { resolvedObject } ) ; return resolvedObject ; }
Resolve any Token to an existing instance of the Token representing a ManagedObject if there is one already in memory .