public Object getStateToBind ( Object orig , Name name , Context ctx , Hashtable < ? , ? > env ) throws NamingException { if ( orig instanceof org . omg . CORBA . Object ) { // Already a CORBA object, just use it return null ; } if ( orig instanceof Remote ) { // Turn remote object into org.omg.CORBA.Object try { // Returns null if JRMP; let next factory try // CNCtx will eventually throw IllegalArgumentException if // no CORBA object gotten return CorbaUtils . remoteToCorba ( ( Remote ) orig , ( ( CNCtx ) ctx ) . _orb ) ; } catch ( ClassNotFoundException e ) { // RMI-IIOP library not available throw IIOPLogger . ROOT_LOGGER . unavailableRMIPackages ( ) ; } } return null ; // pass and let next state factory try }
Returns the CORBA object for a Remote object . If input is not a Remote object or if Remote object uses JRMP return null . If the RMI - IIOP library is not available throw ConfigurationException .