should we call this method setUrlGenerator?