code: public void copyResourceToProject(String resourcename) throws CmsException {
  
          CmsResource resource = readResource(resourcename, CmsResourceFilter.ALL);
          copyResourceToProject(resource);
      }
docs: Copies a resource to the current project of the user.<p>
  
  This is used to extend the current users project with the
  specified resource, in case that the resource is not yet part of the project.
  The resource is not really copied like in a regular copy operation,
  it is in fact only "enabled" in the current users project.<p>
  
  @param resourcename the name of the resource to copy to the current project (full current site relative path)
  
  @throws CmsException if something goes wrong