code: public CmsResource getOrCreateFolder(CmsObject cms) throws CmsException {
  
          CmsResource result = getFolder(cms);
          if (result != null) {
              return result;
          }
          return createFolder(cms);
      }
docs: Returns the folder if it already exists, or creates and returns it if it doesn't.<p>
  
  @param cms the current CMS context
  
  @return the folder
  
  @throws CmsException if something goes wrong