* @throws Exception
*/
public void addNewServer(String host, int port, String domain, String user, String pwd)
throws Exception
{
ManagedServer managedServer = new ManagedServer(host, port, domain, user, pwd);
String server = managedServer.getName();
List<TreeObject> list = _serversRootNode.getChildren();
for (TreeObject node : list)
{
ManagedServer nodeServer = (ManagedServer)node.getManagedObject();
if (server.equals(nodeServer.getName()))
{
// Server is already in the list of added servers, so now connect it.
// Set the server node as selected and then connect it.
_treeViewer.setSelection(new StructuredSelection(node));
reconnect(user, pwd);