Move the setUrl Method to the bean creation block