throw new PrincipalException();
}
String[] portletNames = req.getParameterValues("portletName");
for (int i = 0; i < portletNames.length; i++) {
String[] nameAndWar = StringUtil.split(portletNames[i], "/");
<BUG>portletNames[i] =
nameAndWar[1] + Portlet.WAR_SEPARATOR + nameAndWar[0];
</BUG>
}
Layout layout = LayoutLocalServiceUtil.addLayout(

throw new PrincipalException();
}
String[] portletNames = req.getParameterValues("portletName");
for (int i = 0; i < portletNames.length; i++) {
String[] nameAndWar = StringUtil.split(portletNames[i], "/");
portletNames[i] = PortalUtil.getJsSafePortletName(
nameAndWar[1] + Portlet.WAR_SEPARATOR + nameAndWar[0]);
}
Layout layout = LayoutLocalServiceUtil.addLayout(
