if (!StringUtils.isBlank(cloneName))
{
PortletRegistry registry = ((AbstractAdminWebApplication) getApplication()).getServiceLocator().getPortletRegistry();
PortletApplication app = registry.getPortletApplication(paNodeBean.getApplicationName());
PortletDefinition def = app.getPortlet(paNodeBean.getName());
registry.clonePortletDefinition(def, cloneName);
updateSearchEngine(true, app); // TODO: move this into registry api?
updateSearchEngine(false, app); // TODO: move this into registry api?
StringResourceModel resModel = new StringResourceModel("pam.details.action.status.portlet.cloneOK", this, null, new Object [] { paNodeBean.getName() } );
feed.info(resModel.getString());
}