code: private String getNewContentName() throws CmsException {
  
          String sitePath = OpenCms.getResourceManager().getNameGenerator().getNewFileName(
              m_cms,
              CmsStringUtil.joinPaths(
                  m_cms.getRequestContext().removeSiteRoot(m_configuration.getContentParentFolder().getRootPath()),
                  m_configuration.getNamePattern()),
              5);
          return sitePath;
      }
docs: Returns the new resource site path.<p>
  
  @return the new resource site path
  @throws CmsException if something goes wrong