* @throws Exception, in case the connection could not be established to the server-side.
*/
static MBeanServerConnection getRemoteMBeanServerConnection(Map env, JMXServiceURL serviceUrl)
throws Exception {
return new RemoteMBeanServerConnection(env2HttpAddress(env, serviceUrl), env);
}