Extract Method on getActualUrl() so it can be used by external resources.

...s to allow loading of local resources.