gt:             for (CmsListItem item : items) {
context: /*
   * This library is part of OpenCms -
   * the Open Source Content Management System
   *
   * Copyright (c) Alkacon Software GmbH (http://www.alkacon.com)
   *
   * This library is free software; you can redistribute it and/or
   * modify it under the terms of the GNU Lesser General Public
   * License as published by the Free Software Foundation; either
   * version 2.1 of the License, or (at your option) any later version.
   *
   * This library is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
   * Lesser General Public License for more details.
   *
   * For further information about Alkacon Software GmbH, please see the
   * company website: http://www.alkacon.com
   *
   * For further information about OpenCms, please see the
   * project website: http://www.opencms.org
   *
   * You should have received a copy of the GNU Lesser General Public
   * License along with this library; if not, write to the Free Software
   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   */
  
  package org.opencms.workplace.tools.content.languagecopy;
  
  import org.opencms.file.CmsObject;
  import org.opencms.file.CmsProperty;
  import org.opencms.file.CmsPropertyDefinition;
  import org.opencms.file.CmsResource;
  import org.opencms.file.CmsResourceFilter;
  import org.opencms.file.types.CmsResourceTypeXmlContent;
  import org.opencms.file.types.CmsResourceTypeXmlPage;
  import org.opencms.file.types.I_CmsResourceType;
  import org.opencms.i18n.CmsMessageContainer;
  import org.opencms.jsp.CmsJspActionElement;
  import org.opencms.main.CmsException;
  import org.opencms.main.CmsLog;
  import org.opencms.main.CmsRuntimeException;
  import org.opencms.main.OpenCms;
  import org.opencms.util.CmsStringUtil;
  import org.opencms.workplace.CmsWorkplace;
  import org.opencms.workplace.CmsWorkplaceSettings;
  import org.opencms.workplace.list.A_CmsListDialog;
  import org.opencms.workplace.list.CmsListColumnAlignEnum;
  import org.opencms.workplace.list.CmsListColumnDefinition;
  import org.opencms.workplace.list.CmsListItem;
  import org.opencms.workplace.list.CmsListMetadata;
  import org.opencms.workplace.list.CmsListMultiAction;
  import org.opencms.workplace.list.CmsListOrderEnum;
  import org.opencms.workplace.tools.CmsToolDialog;
  import org.opencms.workplace.tools.CmsToolManager;
  import org.opencms.xml.content.CmsXmlContent;
  import org.opencms.xml.content.CmsXmlContentFactory;
  
  import java.io.FileNotFoundException;
  import java.io.IOException;
  import java.util.ArrayList;
  import java.util.Collections;
  import java.util.HashMap;
  import java.util.LinkedList;
  import java.util.List;
  import java.util.Locale;
  import java.util.Map;
  
  import javax.servlet.ServletException;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  import javax.servlet.jsp.PageContext;
  
  import org.apache.commons.logging.Log;
  
  /**
   * A list that displays resources and the existance of their language nodes.
   * <p>
   *
   * @since 7.5.1
   *
   */
  public class CmsLanguageCopySelectionList extends A_CmsListDialog {
  
      /** list action id constant. */
      public static final String LIST_ACTION_NONE = "an";
  
      /** list column id constant. */
      public static final String LIST_COLUMN_ICON = "lcic";
  
      /** list action id constant. */
      public static final String LIST_COLUMN_ID = "li.id.languagecopyselection";
  
      /** list column id constant. */
      public static final String LIST_COLUMN_PATH = "lcp";
  
      /** list column id constant. */
      public static final String LIST_COLUMN_PREFIX_PROPERTY = "cnp-";
  
      /** list column id constant. */
      public static final String LIST_COLUMN_RESOURCETYPE = "lcrt";
  
      /** list item detail id constant. */
      public static final String LIST_DETAIL_FULLPATH = "df";
  
      /** Multi action for copy. */
      public static final String LIST_MACTION_COPY = "mac";
  
      /** The request parameter for the paths to work on. */
      public static final String PARAM_PATHS = "paths";
  
      /** The request parameter for the paths to work on. */
      public static final String PARAM_SIBLINGS = "siblings";
  
      /** The request parameter for the source language. */
      public static final String PARAM_SOURCE_LANGUAGE = "sourcelanguage";
  
      /** The request parameter for the target language. */
      public static final String PARAM_TARGET_LANGUAGE = "targetlanguage";
  
      /** The request parameter for the target language. */
      public static final String PARAM_DELETE = "delete";
  
      /** The log object for this class. */
      private static final Log LOG = CmsLog.getLog(CmsLanguageCopySelectionList.class);
  
      /** Signals whether to delete the original language node or not. */
      private String m_paramDelete;
  
      /** The source language. */
      private String m_paramSourcelanguage;
  
      /** The target language. */
      private String m_paramTargetlanguage;
  
      /** The paths. */
      private String[] m_paths;
  
      /**
       * Public constructor.
       * <p>
       *
       * @param jsp an initialized JSP action element
       *
       * @throws CmsException if something goes wrong.
       *
       * @throws FileNotFoundException if something goes wrong.
       */
      public CmsLanguageCopySelectionList(final CmsJspActionElement jsp)
      throws FileNotFoundException, CmsException {
  
          this(jsp, LIST_COLUMN_ID, Messages.get().container(Messages.GUI_LIST_LANGUAGECOPY_NAME_0));
      }
  
      /**
       * Public constructor.
       * <p>
       *
       * @param jsp an initialized JSP action element
       * @param listId the id of the list
       * @param listName the list name
       *
       * @throws CmsException if something goes wrong.
       *
       * @throws FileNotFoundException if something goes wrong.
       */
      public CmsLanguageCopySelectionList(
          final CmsJspActionElement jsp,
          final String listId,
          final CmsMessageContainer listName)
          throws FileNotFoundException, CmsException {
  
          this(jsp, listId, listName, LIST_COLUMN_ID, CmsListOrderEnum.ORDER_ASCENDING, null);
      }
  
      /**
       * Public constructor.
       * <p>
       *
       * @param jsp an initialized JSP action element
       * @param listId the id of the displayed list
       * @param listName the name of the list
       * @param sortedColId the a priory sorted column
       * @param sortOrder the order of the sorted column
       * @param searchableColId the column to search into
       *
       * @throws CmsException if something goes wrong.
       * @throws FileNotFoundException if something goes wrong.
       */
      @SuppressWarnings("unused")
      public CmsLanguageCopySelectionList(
          final CmsJspActionElement jsp,
          final String listId,
          final CmsMessageContainer listName,
          final String sortedColId,
          final CmsListOrderEnum sortOrder,
          final String searchableColId)
          throws FileNotFoundException, CmsException {
  
          super(jsp, listId, listName, sortedColId, sortOrder, searchableColId);
      }
  
      /**
       * Public constructor with JSP variables.
       * <p>
       *
       * @param context the JSP page context
       * @param req the JSP request
       * @param res the JSP response
       *
       * @throws CmsException if something goes wrong.
       * @throws FileNotFoundException if something goes wrong.
       */
      public CmsLanguageCopySelectionList(
          final PageContext context,
          final HttpServletRequest req,
          final HttpServletResponse res)
          throws FileNotFoundException, CmsException {
  
          this(new CmsJspActionElement(context, req, res));
      }
  
      /**
       * @see org.opencms.workplace.list.A_CmsListDialog#executeListMultiActions()
       */
      @Override
      public void executeListMultiActions() throws IOException, ServletException, CmsRuntimeException {
  
          if (getParamListAction().equals(LIST_MACTION_COPY)) {
  
              // create absolute RFS path and store it in dialog object
              Map<String, String[]> params = new HashMap<String, String[]>();
              List<CmsListItem> items = getSelectedItems();
              List<String> paths = new LinkedList<String>();
  