"weblogic.jndi.WLInitialContextFactory");
props.put(Context.PROVIDER_URL, config.getURL());
props.put(Context.SECURITY_PRINCIPAL, config.getUsername());
props.put(Context.SECURITY_CREDENTIALS, config.getPassword());
Context ctx = new InitialContext(props);
MBeanHome home = (MBeanHome) ctx.lookup(MBeanHome.JNDI_NAME + "." +
"localhome");
// Fix for 1586075: Passing context in, so that it can be closed when the connection
// is closed
return new WLServerConnection(home.getMBeanServer(), ctx);
} catch (Throwable e) {