if(null != channelInformation) {
// portletWindowId cannot contain a "."
// if group(3) contains a ".", set subscribe Id to value after "."
if(channelInformation.contains(".")) {
String [] channelElements = channelInformation.split("\\.");
IPortletWindowId portletWindowId = portletWindowRegistry.getPortletWindowId(channelElements[0]);
requestInfo.setTargetedPortletWindowId(portletWindowId);
requestInfo.setTargetedChannelSubscribeId(channelElements[1]);
} else {
// no "." in group(3), just set as portletWindowId and leave targetedChannelSubscribeId null
IPortletWindowId portletWindowId = portletWindowRegistry.getPortletWindowId(channelInformation);
requestInfo.setTargetedPortletWindowId(portletWindowId);
}
}
// group(1) may contain slashes to separate sub folders