code: public CmsResource getFolder(CmsObject cms) throws CmsException {
  
          if (m_folder != null) {
              return m_folder;
          }
          try {
              CmsResource folder = cms.readResource(m_path);
              return folder;
          } catch (CmsVfsResourceNotFoundException e) {
              return null;
          }
      }
docs: Returns the folder if it already exists, or null if it doesn't.<p>
  
  @param cms the current CMS context
  
  @return the folder if it exists, else null
  
  @throws CmsException if something goes wrong