Changed the function to `setUrlGenerator`, and removed the thrown exception. Now it does simply overwrite. Good point.