public PortletURLProvider getPortletURLProvider(TYPE type) {
final IPortletWindowId portletWindowId = this.portletWindow.getPortletWindowId();
final UrlType urlType = UrlType.fromPortletUrlType(type);
final IPortalUrlBuilder portalUrlBuilder = this.portalUrlProvider.getPortalUrlBuilderByPortletWindow(containerRequest, portletWindowId, urlType);
final IPortletUrlBuilder portletUrlBuilder = portalUrlBuilder.getPortletUrlBuilder(portletWindowId);
return new PortletURLProviderImpl(portletUrlBuilder);
}