private static Object createDelegate(String classKey) { String className = (String) AccessController.doPrivileged(new GetPropertyAction(classKey)); if (className == null) { Properties props = getORBPropertiesFile(); if (props != null) { className = props.getProperty(classKey); } } if (className == null) { return new com.sun.corba.se.impl.javax.rmi.PortableRemoteObject(); } try { return (Object) loadDelegateClass(className).newInstance(); } catch (ClassNotFoundException ex) { INITIALIZE exc = new INITIALIZE( "Cannot instantiate " + className); exc.initCause( ex ) ; throw exc ; } catch (Exception ex) { INITIALIZE exc = new INITIALIZE( "Error while instantiating" + className); exc.initCause( ex ) ; throw exc ; } }
if (className == null) Properties props = getORBPropertiesFile(); if (props != null)
if (className == null) Properties props = getORBPropertiesFile(); if (props != null)