PortletURLProvider urlProvider = container
.getRequiredContainerServices()
.getPortalCallbackService()
.getPortletURLProvider(servletRequest, internalPortletWindow);
if(urlProvider.isSecureSupported()) {
throw new PortletSecurityException("Secure URLs not supported.");
}
}