public static CopiedPortlet createCopiedPortlet(PortletContext newPortletContext, String fromPortletHandle)
{
ParameterValidation.throwIllegalArgExceptionIfNull(newPortletContext, "newPortletContext");
ParameterValidation.throwIllegalArgExceptionIfNullOrEmpty(fromPortletHandle, "fromPortletHandle", "createCopiedPortlet");
CopiedPortlet copiedPortlet = new CopiedPortlet();
copiedPortlet.setNewPortletContext(newPortletContext);
copiedPortlet.setFromPortletHandle(fromPortletHandle);
return copiedPortlet;
}