public void run()
  {
      buildCompleted = false;
      build = true;
  Connection connection = null;
    try
    {
        connection = ConnectionUtil.getConnection(login);
        md = connection.getMetaData();
        //System.out.println("getCatalog():"+connection.getCatalog());
        build();
        if(build)
            buildListener.treeFinished(this);
    }
    catch (Exception ex)
    {
        ex.printStackTrace();
    }
    finally
    {
        try
        {
            if(connection != null)
                connection.close();
        }
        catch (SQLException ex1){}
    }
  }