if( uri == null )
uri = constructNativeHypervisorURI();
StandardUsernamePasswordCredentials standardUsernamePasswordCredentials = (StandardUsernamePasswordCredentials) credentials;
return new JLibVirtConnectImpl(hypervisorHost,
hypervisorPort,
credentials.getUsername(),
standardUsernamePasswordCredentials.getPassword().getPlainText(),
uri, readOnly);
}