int copyMode = 0;
if (sCopyMode != null)
copyMode = Integer.parseInt(sCopyMode);
switch (copyMode) {
case SectionCopyOption.COPY_ALL:
return new BasicSectionCopyOption(true);
case SectionCopyOption.COPY_NONE:
return new BasicSectionCopyOption(false);
default:
SectionCopyOption sco = CopyOption.DEFAULT_SECTION_COPY_OPTION_SAME_WORKSPACE;
for (Enumeration en = request.getRequestObject().getParameterNames(); en.hasMoreElements();) {
String paramName = (String) en.nextElement();
if (!paramName.startsWith("duplicatePanelInstance_"))