context.refs.find(object));
if (ref == null) {
ref = new ManagedReferenceImpl<T>(context, object);
context.refs.add(ref);
} else if (ref.isRemoved()) {
throw new ObjectNotFoundException("Object has been removed");
}
if (logger.isLoggable(Level.FINEST)) {
logger.log(Level.FINEST,
"getReference tid:{0,number,#}, type:{1}" +
" returns oid:{2,number,#}",