code: public String getLostAndFoundName(String resourcename) throws CmsException {
  
          CmsResource resource = readResource(resourcename, CmsResourceFilter.ALL);
          return m_securityManager.moveToLostAndFound(m_context, resource, true);
      }
docs: Returns the name a resource would have if it were moved to the
  "lost and found" folder. <p>
  
  In general, it is the same name as the given resource has, the only exception is
  if a resource in the "lost and found" folder with the same name already exists.
  In such case, a counter is added to the resource name.<p>
  
  @param resourcename the name of the resource to get the "lost and found" name for (full current site relative path)
  
  @return the tentative name of the resource inside the "lost and found" folder
  
  @throws CmsException if something goes wrong
  
  @see #moveToLostAndFound(String)