* Get a connection to the server instances's mbean server using the InstanceRegistry
*/
private MBeanServerConnection getConnection() throws AgentException {
if (_connection == null) {
if (_registry == null) {
_registry = new MBeanServerRegistry(getConnectionInfo());
}
_connection = _registry.getMBeanServerConnection();
}
return _connection;
}