PortletSet set = (PortletSet) ((JetspeedRunData) rundata).getCustomized();
try
{
String securityRefName = rundata.getParameters().getString("securityRef");
SecurityReference securityRef = null;
Profile profile = ((JetspeedRunData) rundata).getCustomizedProfile();
Portlets portlets = profile.getDocument().getPortletsById(set.getID());
if ((securityRefName != null) && (securityRefName.trim().length() > 0))
{
securityRef = new BaseSecurityReference();
securityRef.setParent(securityRefName);
}
set.getPortletConfig().setSecurityRef(securityRef);
portlets.setSecurityRef(securityRef);
}
catch (Exception e)