code: public void actionCopyToProject() throws JspException {
  
          // save initialized instance of this class in request attribute for included sub-elements
          getJsp().getRequest().setAttribute(SESSION_WORKPLACE_CLASS, this);
          try {
              // copy the resource to the current project
              getCms().copyResourceToProject(getParamResource());
              // close the dialog
              actionCloseDialog();
          } catch (Throwable e) {
              // error copying resource to project, include error page
              includeErrorpage(this, e);
          }
      }
docs: Performs the copy to project action, will be called by the JSP page.<p>
  
  @throws JspException if problems including sub-elements occur