Query mechanism modified so it can accept external CSW URL and profile id.