public Object getObjectInstance ( Object obj , Name name , Context nameCtx , Hashtable env ) throws Exception { // Get the nns value from the Reference obj and use it as the map key Reference ref = ( Reference ) obj ; RefAddr addr = ref . get ( "nns" ) ; String key = ( String ) addr . getContent ( ) ; Object target = wrapperMap . get ( key ) ; return target ; }
Transform the obj Reference bound into the JNDI namespace into the actual non - Serializable object .