150151152153154155156157158159160
if(portletUrl == null){ return null; } //Default urlType UrlType urlType = UrlType.RENDER; final PortletUrlType type = portletUrl.getType(); switch(type){ case ACTION: urlType=UrlType.ACTION; break; case RESOURCE: