// get source web content URL, parameters, and method to view
String sourceURL = null;
Map sourceParams = null;
boolean sourcePostMethod = false;
WebContentHistoryPage webContentPage = (WebContentHistoryPage)PortletMessaging.receive(request, getClass().getName());
if (webContentPage != null)
{
// view rewritten action URL page
sourceURL = webContentPage.getUrl();
sourceParams = webContentPage.getParams();
sourcePostMethod = webContentPage.isPost();
}
else
{
// load and validate preferences, (base url and portal base path
// should both end in a "/" path separator to ensure that relative