Revert "Handled multiple BaseURL elements by simply choosing the first BaseURL"

This reverts commit 3b35c77b78f1ab4796383323e11fa111bf57b48c.
Handled multiple BaseURL elements by simply choosing the first BaseURL