changed access to method getUrlConnection to public