public synchronized PortalURL getRequestedPortalURL() {
if(requestedPortalURL == null) {
DriverConfiguration config = (DriverConfiguration)
servletContext.getAttribute(AttributeKeys.DRIVER_CONFIG);
if (config != null) {
PortalURLParser parser = config.getPortalUrlParser();
requestedPortalURL = parser.parse(request);
} else {
String msg = "Driver configuration not found while parsing portal URL!";
LOG.error(msg);
throw new IllegalStateException(msg);
}