retrieve-an-top-level-domain-from-an-url-using-java