PortletApplication app = registry.getPortletApplication(paNodeBean.getApplicationName());
PortletDefinition def = PortletApplicationUtils.getPortletOrClone(app, paNodeBean.getName());
if (newRoleName != null && newRoleLink != null)
{
SecurityRoleRef securityRoleRef = def.addSecurityRoleRef(newRoleName);
securityRoleRef.setRoleLink(newRoleLink);
if (newLocale != null && newDescription != null)
{
Description desc = securityRoleRef.addDescription(newLocale);