checkOperationIsAllowed(portletContext, registration, "createClone");
PortletContext clonedPortletContext = super.createClone(stateType, portletContext);
try
{
registration.addPortletContext(clonedPortletContext);
}
catch (RegistrationException e)
{
throw new PortletInvokerException("Couldn't add portlet context '" + clonedPortletContext + "' to registration '" + registration.getRegistrationHandle() + "'", e);
}